Commit bd0a0be3 by 陈雨佳

Initial commit

parents
# rails-assets-knockout
> The Bower package inside a gem
This gem was automatically generated. You can visit [rails-assets.org](https://rails-assets.org) for more information.
## Usage
Add rails-assets source block to your `Gemfile`:
```ruby
source "https://rails-assets.org" do
gem "rails-assets-knockout"
end
```
Then, import the asset using Sprockets’ `require` directive:
```js
//= require "knockout"
```
require 'bundler/gem_tasks'
//= require knockout/knockout.js
This source diff could not be displayed because it is too large. You can view the blob instead.
require "rails-assets-knockout/version"
module RailsAssetsKnockout
def self.gem_path
Pathname(File.realpath(__FILE__)).join('../..')
end
def self.gem_spec
Gem::Specification::load(
gem_path.join("rails-assets-knockout.gemspec").to_s
)
end
def self.load_paths
gem_path.join('app/assets').each_child.to_a
end
def self.dependencies
[
]
end
if defined?(Rails)
class Engine < ::Rails::Engine
# Rails -> use app/assets directory.
end
end
end
class RailsAssets
@components ||= []
class << self
attr_accessor :components
def load_paths
components.flat_map(&:load_paths)
end
end
end
RailsAssets.components << RailsAssetsKnockout
module RailsAssetsKnockout
VERSION = "3.4.0"
end
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rails-assets-knockout/version'
Gem::Specification.new do |spec|
spec.name = "rails-assets-knockout"
spec.version = RailsAssetsKnockout::VERSION
spec.authors = ["rails-assets.org"]
spec.description = "Knockout makes it easier to create rich, responsive UIs with JavaScript"
spec.summary = "Knockout makes it easier to create rich, responsive UIs with JavaScript"
spec.homepage = "http://knockoutjs.com/"
spec.license = "MIT"
spec.files = `find ./* -type f | cut -b 3-`.split($/)
spec.require_paths = ["lib"]
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
end
{
"name": "rails-assets-knockout",
"downloads": null,
"version": "3.4.0",
"version_downloads": null,
"platform": "ruby",
"authors": "rails-assets.org",
"info": "Knockout makes it easier to create rich, responsive UIs with JavaScript",
"licenses": "MIT",
"metadata": {
},
"sha": null,
"project_uri": "http://knockoutjs.com/",
"gem_uri": null,
"homepage_uri": "http://knockoutjs.com/",
"wiki_uri": null,
"documentation_uri": null,
"mailing_list_uri": null,
"source_code_uri": "http://knockoutjs.com/",
"bug_tracker_uri": null,
"dependencies": {
"development": [
],
"runtime": [
]
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment