wrap-bootstrap-rails 0.0.2 → 0.0.3

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: 1983fc78b014bfbf065010b2f63b96917c61711e
4
- data.tar.gz: 3b37d995774c1d7ab0db84ec0713496894dced72
3
+ metadata.gz: 1e903365c3d0a4e709c9886ee0ef6ee8302784c8
4
+ data.tar.gz: b724cf3b0422e87de2909ca43c73a453ef5f9587
5
5
  SHA512:
6
- metadata.gz: 6667c2fdfb904f472c0c134554642fb3ca0b6b7f7e65e2941c29853a01c6105c5959ba57aa9147a614765d6749cd7dd8d62879cce0820d1919db13390950401e
7
- data.tar.gz: 0883fbf8634e51ef2cc3a1da7c99dc36c7a6d8160329b1678201ca438b57cb72b6102a470915ec84723140a1f2f254cd19ecd8857d3fc32ebf46396943488c71
6
+ metadata.gz: eefafc488849f839957deec81a1bb1b59c2133149bd8a5f550709f40720343473df82dfe1cd2f5ee54e8d66b86915861bdd94d0d89968f41de3f378e9ef98504
7
+ data.tar.gz: 6e0b920c7e3869f6e40bae5910cfc19a25bf5a96e5fb52eab554ef45ab84803ca7aabe9d343b75ea5448c35b9be345ca42fb5f029f741444ba73e7372c7ba391
@@ -57,15 +57,15 @@ class Wrap::Bootstrap::Rails
57
57
 
58
58
  def copy_assets
59
59
  asset_src_path = File.join(wrap_dir, "assets")
60
- FileUtils.mkdir_p(vendor_path)
61
- FileUtils.cp_r(asset_src_path, vendor_path)
60
+ FileUtils.mkdir_p(app_path)
61
+ FileUtils.cp_r(asset_src_path, app_path)
62
62
 
63
63
  rename_directories
64
64
  separate_namespace
65
65
  end
66
66
 
67
67
  def fix_asset_references
68
- Find.find(vendor_path) do |path|
68
+ Find.find(app_path) do |path|
69
69
  next unless path.match(/\.css$/)
70
70
  update_url_for_asset_pipeline(path)
71
71
  end
@@ -145,9 +145,9 @@ class Wrap::Bootstrap::Rails
145
145
 
146
146
  def rename_directories
147
147
  DIRNAME_MAP.each do |org_name, new_name|
148
- org_path = File.join(vendor_path, "assets", org_name)
148
+ org_path = File.join(app_path, "assets", org_name)
149
149
  if File.exists?(org_path)
150
- new_path = File.join(vendor_path, "assets", new_name)
150
+ new_path = File.join(app_path, "assets", new_name)
151
151
  FileUtils.mv(org_path, new_path)
152
152
  end
153
153
  end
@@ -156,7 +156,7 @@ class Wrap::Bootstrap::Rails
156
156
  def separate_namespace
157
157
  working_dir = File.join("/tmp", "wrap-bootstrap-rails", gem_name)
158
158
 
159
- vendor_assets_path = File.join(vendor_path, "assets")
159
+ vendor_assets_path = File.join(app_path, "assets")
160
160
  Dir.foreach(vendor_assets_path) do |dir|
161
161
  next if dir.match(/^\./)
162
162
  target_dir = File.join(vendor_assets_path, dir)
@@ -195,8 +195,8 @@ class Wrap::Bootstrap::Rails
195
195
  exit
196
196
  end
197
197
 
198
- def vendor_path
199
- @vendor_path ||= File.join(gem_dir, "vendor")
198
+ def app_path
199
+ @app_path ||= File.join(gem_dir, "app")
200
200
  end
201
201
 
202
202
  def gem_name
@@ -1,7 +1,7 @@
1
1
  module Wrap
2
2
  module Bootstrap
3
3
  class Rails
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrap-bootstrap-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-26 00:00:00.000000000 Z
11
+ date: 2014-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unindent
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.5'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.5'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Rails plugin generator for Wrap Bootstrap design templates
@@ -60,7 +60,7 @@ executables:
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - .gitignore
63
+ - ".gitignore"
64
64
  - Gemfile
65
65
  - LICENSE.txt
66
66
  - README.md
@@ -79,17 +79,17 @@ require_paths:
79
79
  - lib
80
80
  required_ruby_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - '>='
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
- rubygems_version: 2.0.3
92
+ rubygems_version: 2.2.2
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: Rails plugin generator for Wrap Bootstrap design templates