bower 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8f4d98c543695b7c351f8e11dc111fdbccba9a8
4
- data.tar.gz: aa3d3cef7b614098ff263bdcf4acd605a45bc0f4
3
+ metadata.gz: 9bfb8a28a581f3fb24a5c3c498b9b1c9a6ccae1d
4
+ data.tar.gz: 94c4b7c742917184c7c7f0c6c02c8e3f86c0f6f9
5
5
  SHA512:
6
- metadata.gz: 6ef3bb5ae782f705b03aed01146f88f76edfd31601f73693a0cfc8caa620ea2e899c982b76cdcc631764a0a259dbbf4a12fdba103c3abc5b91b563bca6bd6402
7
- data.tar.gz: 2aa2277afe9883b0a2439bf78a4c74f5c2acbe084b60bef8696b38e0f4c955d3ad229fd70d754d5280cba02bd66910a236524bea94aafb3bd5e83f05178dc1b8
6
+ metadata.gz: 24bb1bccd834a30d127e8d43057a2dc6f13c0d4a4782d35b1015fb17308ff2def49767ec20d106cc256cb2223811250178be62aa5e1981a5ebeb2c186878b222
7
+ data.tar.gz: d483b4c157add2ad1cd942c0c0527c8591e9c9d22dda1adab5728fc610fb42f0b75d013e76a0660dfa334c44f615c03c758268c92be8a55cfb48dfa61d4a1f38
@@ -1,3 +1,12 @@
1
+ 0.0.5
2
+ -----
3
+ * [Fix issue with rails generator](https://github.com/stve/bower/issues/8)
4
+
5
+ 0.0.4
6
+ -----
7
+
8
+ * [Add MultiJson dependency](https://github.com/stve/bower/pull/7)
9
+
1
10
  0.0.3
2
11
  -----
3
12
  * [Fix issue with default bower.json file](https://github.com/stve/bower/commit/a6bf98d1c51f6934676f04803e2ef8d962c0c626)
@@ -8,12 +8,13 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Bower::VERSION
9
9
  spec.homepage = 'https://github.com/stve/bower'
10
10
 
11
- spec.author = "Steve Agalloco"
11
+ spec.author = 'Steve Agalloco'
12
12
  spec.email = 'steve.agalloco@gmail.com'
13
13
  spec.description = 'Bower integration for your ruby projects.'
14
14
  spec.summary = 'Bower integration for your ruby projects.'
15
15
 
16
- spec.files = %w(.yardopts CHANGELOG.md LICENSE.md README.md bower.gemspec) + Dir['lib/**/*.rb']
16
+ spec.files = %w(.yardopts CHANGELOG.md LICENSE.md README.md bower.gemspec)
17
+ spec.files += Dir['lib/**/*']
17
18
  spec.require_paths = ['lib']
18
19
 
19
20
  spec.add_runtime_dependency 'multi_json'
@@ -1,19 +1,20 @@
1
1
  require 'bower/environment'
2
2
 
3
3
  module Bower
4
- extend self
5
-
6
4
  def install
7
5
  environment.install
8
6
  end
7
+ module_function :install
9
8
 
10
9
  def update
11
10
  environment.update
12
11
  end
12
+ module_function :update
13
13
 
14
14
  def environment
15
15
  @environment ||= Bower::Environment.setup('.bowerrc')
16
16
  end
17
+ module_function :environment
17
18
 
18
- require "bower/railtie" if defined?(::Rails)
19
+ require 'bower/railtie' if defined?(::Rails)
19
20
  end
@@ -8,8 +8,8 @@ module Bower
8
8
  DEFAULT_DIRECTORY = 'bower_components'
9
9
  DEFAULT_JSON = 'bower.json'
10
10
 
11
- def self.setup(bowerrc=nil)
12
- if bowerrc && File.exists?(bowerrc)
11
+ def self.setup(bowerrc = nil)
12
+ if bowerrc && File.exist?(bowerrc)
13
13
  conf = MultiJson.load(File.open(bowerrc))
14
14
  Environment.new(conf)
15
15
  else
@@ -17,7 +17,7 @@ module Bower
17
17
  end
18
18
  end
19
19
 
20
- def initialize(config={})
20
+ def initialize(config = {})
21
21
  @directory = config['directory'] || DEFAULT_DIRECTORY
22
22
  @json = DEFAULT_JSON
23
23
  end
@@ -33,12 +33,11 @@ module Bower
33
33
  private
34
34
 
35
35
  def run(cmd)
36
- return unless Dir.exists?(directory)
36
+ return unless Dir.exist?(directory)
37
37
 
38
38
  Dir.chdir(directory) do
39
- `#{cmd}` if File.exists?(json)
39
+ `#{cmd}` if File.exist?(json)
40
40
  end
41
41
  end
42
-
43
42
  end
44
43
  end
@@ -1,3 +1,3 @@
1
1
  module Bower
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
@@ -3,9 +3,9 @@ require 'securerandom'
3
3
  module Bower
4
4
  module Generators
5
5
  class InstallGenerator < Rails::Generators::Base
6
- source_root File.expand_path("../../templates", __FILE__)
6
+ source_root File.expand_path('../../templates', __FILE__)
7
7
 
8
- desc "Creates a local configuration file and the default JSON file for Bower to use in your application."
8
+ desc 'Creates a local configuration file and the default JSON file for Bower to use in your application.'
9
9
 
10
10
  def create_components_directory
11
11
  empty_directory 'bower_components'
@@ -16,7 +16,7 @@ module Bower
16
16
  end
17
17
 
18
18
  def copy_config
19
- copy_file "bowerrc", ".bowerrc"
19
+ copy_file 'bowerrc', '.bowerrc'
20
20
  end
21
21
  end
22
22
  end
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "",
3
+ "version": "",
4
+ "main": "",
5
+ "private": true,
6
+ "dependencies": {}
7
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "directory" : "bower_components"
3
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bower
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Agalloco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-21 00:00:00.000000000 Z
11
+ date: 2015-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -40,6 +40,8 @@ files:
40
40
  - lib/bower/railtie.rb
41
41
  - lib/bower/version.rb
42
42
  - lib/generators/bower/install_generator.rb
43
+ - lib/generators/templates/bower.json
44
+ - lib/generators/templates/bowerrc
43
45
  homepage: https://github.com/stve/bower
44
46
  licenses: []
45
47
  metadata: {}