mountain_view 0.0.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generators/mountain_view/component_generator.rb +28 -0
  3. data/lib/mountain_view/version.rb +1 -1
  4. data/test/dummy/db/development.sqlite3 +0 -0
  5. data/test/dummy/db/test.sqlite3 +0 -0
  6. data/test/dummy/log/development.log +1392 -610
  7. data/test/dummy/log/test.log +1439 -0
  8. data/test/generators/component_generator_test.rb +17 -0
  9. data/test/test_helper.rb +3 -0
  10. data/test/tmp/app/components/widget/_widget.html.erb +0 -0
  11. data/test/tmp/app/components/widget/widget.css +0 -0
  12. data/test/tmp/app/components/widget/widget.js +0 -0
  13. data/test/tmp/app/components/widget/widget.yml +0 -0
  14. metadata +34 -93
  15. data/test/dummy/tmp/cache/assets/development/sprockets/05047392adf909e89a37882b1df46aa8 +0 -0
  16. data/test/dummy/tmp/cache/assets/development/sprockets/056a4da9bcd21e1bc54fc870c1bd1c93 +0 -0
  17. data/test/dummy/tmp/cache/assets/development/sprockets/0848104d612d68babe788b064bb6a773 +0 -0
  18. data/test/dummy/tmp/cache/assets/development/sprockets/0a5bb8ddcf321e88738e02ffb0cd02ef +0 -0
  19. data/test/dummy/tmp/cache/assets/development/sprockets/0c5cdad092202271d7dcd4a4e9434459 +0 -0
  20. data/test/dummy/tmp/cache/assets/development/sprockets/0ee705b1349b8360286fea9ed4e5e40e +0 -0
  21. data/test/dummy/tmp/cache/assets/development/sprockets/1025fb0f151fc866114ecf98044f10ee +0 -0
  22. data/test/dummy/tmp/cache/assets/development/sprockets/1358febedd4ca96d2bffd10daf71a841 +0 -0
  23. data/test/dummy/tmp/cache/assets/development/sprockets/13e30b9b47c795b0bf1c24f728ef72bb +0 -0
  24. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  25. data/test/dummy/tmp/cache/assets/development/sprockets/19cd783e0750e55a88466eaf34cf8ee3 +0 -0
  26. data/test/dummy/tmp/cache/assets/development/sprockets/1a3befd27690385985935fbefadee114 +0 -0
  27. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  28. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  29. data/test/dummy/tmp/cache/assets/development/sprockets/37f90f006cee6a567571d9ef098f959c +0 -0
  30. data/test/dummy/tmp/cache/assets/development/sprockets/46844defcba01dc849d9b419893f98cc +0 -0
  31. data/test/dummy/tmp/cache/assets/development/sprockets/4b8ca8528217ffd457d34f6d3c10390e +0 -0
  32. data/test/dummy/tmp/cache/assets/development/sprockets/5288a3be9b42eac33a8c5107b2c1a3e7 +0 -0
  33. data/test/dummy/tmp/cache/assets/development/sprockets/6469b6494dfcb7811bd823eb37679edb +0 -0
  34. data/test/dummy/tmp/cache/assets/development/sprockets/646c70596539b146a28d3463b52e331d +0 -0
  35. data/test/dummy/tmp/cache/assets/development/sprockets/676413c50ebcc02f3683f0b74d03cd10 +0 -0
  36. data/test/dummy/tmp/cache/assets/development/sprockets/6b18a41e40b87e9cf56140076eaf8ee7 +0 -0
  37. data/test/dummy/tmp/cache/assets/development/sprockets/6d1c1dbe626c83b900adee3270c25207 +0 -0
  38. data/test/dummy/tmp/cache/assets/development/sprockets/7eb84ecf34a4f7e714d58448a8eb10bd +0 -0
  39. data/test/dummy/tmp/cache/assets/development/sprockets/895678836daa2e7d767a0b18998d3b32 +0 -0
  40. data/test/dummy/tmp/cache/assets/development/sprockets/90a2a412cf77f0878e811db239c79cbc +0 -0
  41. data/test/dummy/tmp/cache/assets/development/sprockets/9e3fff55e666e905677ea1ec03cbf90c +0 -0
  42. data/test/dummy/tmp/cache/assets/development/sprockets/a18133f41da2aa5e6c4ceeb0912758e4 +0 -0
  43. data/test/dummy/tmp/cache/assets/development/sprockets/a668b6ff88911a6fc7ee3ed2bce99925 +0 -0
  44. data/test/dummy/tmp/cache/assets/development/sprockets/adf63b8c230bec424832f299d6783649 +0 -0
  45. data/test/dummy/tmp/cache/assets/development/sprockets/b9bd83a3b44c1d3d3f3475bd4c0cba7f +0 -0
  46. data/test/dummy/tmp/cache/assets/development/sprockets/c6c9787ab538d56f0bf078335b046968 +0 -0
  47. data/test/dummy/tmp/cache/assets/development/sprockets/c7ee05b0bd8082e947e7f11a52d43d4d +0 -0
  48. data/test/dummy/tmp/cache/assets/development/sprockets/c8918b8c937b226f93f33acabc876a06 +0 -0
  49. data/test/dummy/tmp/cache/assets/development/sprockets/cd2a0221f05ca5fd45fa56d923f36195 +0 -0
  50. data/test/dummy/tmp/cache/assets/development/sprockets/cd456657bdefb4c3249301a5754fdbe2 +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/d6c936f92dce001a74c5de9eff308ea2 +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/d78f431479fa8ad43875544b8c50d206 +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/fd60d93b12b3001c215f1c6581eca777 +0 -0
  57. data/test/dummy/tmp/pids/server.pid +0 -1
  58. data/test/tmp/app/components/mountain_view.css +0 -3
  59. data/test/tmp/app/components/mountain_view.js +0 -1
@@ -0,0 +1,17 @@
1
+ require "test_helper"
2
+
3
+ class ComponentGeneratorTest < Rails::Generators::TestCase
4
+ tests MountainView::Generators::ComponentGenerator
5
+
6
+ destination File.expand_path("../../tmp", __FILE__)
7
+ setup :prepare_destination
8
+
9
+ test "Assert all files are properly created" do
10
+ run_generator %w( widget )
11
+
12
+ assert_file "app/components/widget/_widget.html.erb"
13
+ assert_file "app/components/widget/widget.css"
14
+ assert_file "app/components/widget/widget.js"
15
+ assert_file "app/components/widget/widget.yml"
16
+ end
17
+ end
data/test/test_helper.rb CHANGED
@@ -13,3 +13,6 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
13
13
  if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
14
  ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
15
  end
16
+ # for generators
17
+ require "rails/generators/test_case"
18
+ require "generators/mountain_view/component_generator"
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mountain_view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Gutierrez
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-11 00:00:00.000000000 Z
12
+ date: 2015-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -25,6 +25,20 @@ dependencies:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 3.2.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: sprockets
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "<"
33
+ - !ruby/object:Gem::Version
34
+ version: 3.0.0
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "<"
40
+ - !ruby/object:Gem::Version
41
+ version: 3.0.0
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: sqlite3
30
44
  requirement: !ruby/object:Gem::Requirement
@@ -62,6 +76,7 @@ files:
62
76
  - app/views/mountain_view/styleguide/index.html.erb
63
77
  - app/views/mountain_view/styleguide/show.html.erb
64
78
  - config/routes.rb
79
+ - lib/generators/mountain_view/component_generator.rb
65
80
  - lib/mountain_view.rb
66
81
  - lib/mountain_view/engine.rb
67
82
  - lib/mountain_view/version.rb
@@ -106,59 +121,22 @@ files:
106
121
  - test/dummy/config/locales/en.yml
107
122
  - test/dummy/config/routes.rb
108
123
  - test/dummy/config/secrets.yml
124
+ - test/dummy/db/development.sqlite3
125
+ - test/dummy/db/test.sqlite3
109
126
  - test/dummy/log/development.log
127
+ - test/dummy/log/test.log
110
128
  - test/dummy/public/404.html
111
129
  - test/dummy/public/422.html
112
130
  - test/dummy/public/500.html
113
131
  - test/dummy/public/favicon.ico
114
- - test/dummy/tmp/cache/assets/development/sprockets/05047392adf909e89a37882b1df46aa8
115
- - test/dummy/tmp/cache/assets/development/sprockets/056a4da9bcd21e1bc54fc870c1bd1c93
116
- - test/dummy/tmp/cache/assets/development/sprockets/0848104d612d68babe788b064bb6a773
117
- - test/dummy/tmp/cache/assets/development/sprockets/0a5bb8ddcf321e88738e02ffb0cd02ef
118
- - test/dummy/tmp/cache/assets/development/sprockets/0c5cdad092202271d7dcd4a4e9434459
119
- - test/dummy/tmp/cache/assets/development/sprockets/0ee705b1349b8360286fea9ed4e5e40e
120
- - test/dummy/tmp/cache/assets/development/sprockets/1025fb0f151fc866114ecf98044f10ee
121
- - test/dummy/tmp/cache/assets/development/sprockets/1358febedd4ca96d2bffd10daf71a841
122
- - test/dummy/tmp/cache/assets/development/sprockets/13e30b9b47c795b0bf1c24f728ef72bb
123
- - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
124
- - test/dummy/tmp/cache/assets/development/sprockets/19cd783e0750e55a88466eaf34cf8ee3
125
- - test/dummy/tmp/cache/assets/development/sprockets/1a3befd27690385985935fbefadee114
126
- - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
127
- - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
128
- - test/dummy/tmp/cache/assets/development/sprockets/37f90f006cee6a567571d9ef098f959c
129
- - test/dummy/tmp/cache/assets/development/sprockets/46844defcba01dc849d9b419893f98cc
130
- - test/dummy/tmp/cache/assets/development/sprockets/4b8ca8528217ffd457d34f6d3c10390e
131
- - test/dummy/tmp/cache/assets/development/sprockets/5288a3be9b42eac33a8c5107b2c1a3e7
132
- - test/dummy/tmp/cache/assets/development/sprockets/6469b6494dfcb7811bd823eb37679edb
133
- - test/dummy/tmp/cache/assets/development/sprockets/646c70596539b146a28d3463b52e331d
134
- - test/dummy/tmp/cache/assets/development/sprockets/676413c50ebcc02f3683f0b74d03cd10
135
- - test/dummy/tmp/cache/assets/development/sprockets/6b18a41e40b87e9cf56140076eaf8ee7
136
- - test/dummy/tmp/cache/assets/development/sprockets/6d1c1dbe626c83b900adee3270c25207
137
- - test/dummy/tmp/cache/assets/development/sprockets/7eb84ecf34a4f7e714d58448a8eb10bd
138
- - test/dummy/tmp/cache/assets/development/sprockets/895678836daa2e7d767a0b18998d3b32
139
- - test/dummy/tmp/cache/assets/development/sprockets/90a2a412cf77f0878e811db239c79cbc
140
- - test/dummy/tmp/cache/assets/development/sprockets/9e3fff55e666e905677ea1ec03cbf90c
141
- - test/dummy/tmp/cache/assets/development/sprockets/a18133f41da2aa5e6c4ceeb0912758e4
142
- - test/dummy/tmp/cache/assets/development/sprockets/a668b6ff88911a6fc7ee3ed2bce99925
143
- - test/dummy/tmp/cache/assets/development/sprockets/adf63b8c230bec424832f299d6783649
144
- - test/dummy/tmp/cache/assets/development/sprockets/b9bd83a3b44c1d3d3f3475bd4c0cba7f
145
- - test/dummy/tmp/cache/assets/development/sprockets/c6c9787ab538d56f0bf078335b046968
146
- - test/dummy/tmp/cache/assets/development/sprockets/c7ee05b0bd8082e947e7f11a52d43d4d
147
- - test/dummy/tmp/cache/assets/development/sprockets/c8918b8c937b226f93f33acabc876a06
148
- - test/dummy/tmp/cache/assets/development/sprockets/cd2a0221f05ca5fd45fa56d923f36195
149
- - test/dummy/tmp/cache/assets/development/sprockets/cd456657bdefb4c3249301a5754fdbe2
150
- - test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
151
- - test/dummy/tmp/cache/assets/development/sprockets/d6c936f92dce001a74c5de9eff308ea2
152
- - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
153
- - test/dummy/tmp/cache/assets/development/sprockets/d78f431479fa8ad43875544b8c50d206
154
- - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
155
- - test/dummy/tmp/cache/assets/development/sprockets/fd60d93b12b3001c215f1c6581eca777
156
- - test/dummy/tmp/pids/server.pid
132
+ - test/generators/component_generator_test.rb
157
133
  - test/helpers/mountain_view/component_helper_test.rb
158
134
  - test/mountain_view_test.rb
159
135
  - test/test_helper.rb
160
- - test/tmp/app/components/mountain_view.css
161
- - test/tmp/app/components/mountain_view.js
136
+ - test/tmp/app/components/widget/_widget.html.erb
137
+ - test/tmp/app/components/widget/widget.css
138
+ - test/tmp/app/components/widget/widget.js
139
+ - test/tmp/app/components/widget/widget.yml
162
140
  homepage: http://github.com/jgnatch/mountain_view
163
141
  licenses:
164
142
  - MIT
@@ -179,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
157
  version: '0'
180
158
  requirements: []
181
159
  rubyforge_project:
182
- rubygems_version: 2.2.2
160
+ rubygems_version: 2.4.5
183
161
  signing_key:
184
162
  specification_version: 4
185
163
  summary: Mountain View helps you create reusable visual components on your Rails Application.
@@ -222,58 +200,21 @@ test_files:
222
200
  - test/dummy/config/routes.rb
223
201
  - test/dummy/config/secrets.yml
224
202
  - test/dummy/config.ru
203
+ - test/dummy/db/development.sqlite3
204
+ - test/dummy/db/test.sqlite3
225
205
  - test/dummy/log/development.log
206
+ - test/dummy/log/test.log
226
207
  - test/dummy/public/404.html
227
208
  - test/dummy/public/422.html
228
209
  - test/dummy/public/500.html
229
210
  - test/dummy/public/favicon.ico
230
211
  - test/dummy/Rakefile
231
212
  - test/dummy/README.rdoc
232
- - test/dummy/tmp/cache/assets/development/sprockets/05047392adf909e89a37882b1df46aa8
233
- - test/dummy/tmp/cache/assets/development/sprockets/056a4da9bcd21e1bc54fc870c1bd1c93
234
- - test/dummy/tmp/cache/assets/development/sprockets/0848104d612d68babe788b064bb6a773
235
- - test/dummy/tmp/cache/assets/development/sprockets/0a5bb8ddcf321e88738e02ffb0cd02ef
236
- - test/dummy/tmp/cache/assets/development/sprockets/0c5cdad092202271d7dcd4a4e9434459
237
- - test/dummy/tmp/cache/assets/development/sprockets/0ee705b1349b8360286fea9ed4e5e40e
238
- - test/dummy/tmp/cache/assets/development/sprockets/1025fb0f151fc866114ecf98044f10ee
239
- - test/dummy/tmp/cache/assets/development/sprockets/1358febedd4ca96d2bffd10daf71a841
240
- - test/dummy/tmp/cache/assets/development/sprockets/13e30b9b47c795b0bf1c24f728ef72bb
241
- - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
242
- - test/dummy/tmp/cache/assets/development/sprockets/19cd783e0750e55a88466eaf34cf8ee3
243
- - test/dummy/tmp/cache/assets/development/sprockets/1a3befd27690385985935fbefadee114
244
- - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
245
- - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
246
- - test/dummy/tmp/cache/assets/development/sprockets/37f90f006cee6a567571d9ef098f959c
247
- - test/dummy/tmp/cache/assets/development/sprockets/46844defcba01dc849d9b419893f98cc
248
- - test/dummy/tmp/cache/assets/development/sprockets/4b8ca8528217ffd457d34f6d3c10390e
249
- - test/dummy/tmp/cache/assets/development/sprockets/5288a3be9b42eac33a8c5107b2c1a3e7
250
- - test/dummy/tmp/cache/assets/development/sprockets/6469b6494dfcb7811bd823eb37679edb
251
- - test/dummy/tmp/cache/assets/development/sprockets/646c70596539b146a28d3463b52e331d
252
- - test/dummy/tmp/cache/assets/development/sprockets/676413c50ebcc02f3683f0b74d03cd10
253
- - test/dummy/tmp/cache/assets/development/sprockets/6b18a41e40b87e9cf56140076eaf8ee7
254
- - test/dummy/tmp/cache/assets/development/sprockets/6d1c1dbe626c83b900adee3270c25207
255
- - test/dummy/tmp/cache/assets/development/sprockets/7eb84ecf34a4f7e714d58448a8eb10bd
256
- - test/dummy/tmp/cache/assets/development/sprockets/895678836daa2e7d767a0b18998d3b32
257
- - test/dummy/tmp/cache/assets/development/sprockets/90a2a412cf77f0878e811db239c79cbc
258
- - test/dummy/tmp/cache/assets/development/sprockets/9e3fff55e666e905677ea1ec03cbf90c
259
- - test/dummy/tmp/cache/assets/development/sprockets/a18133f41da2aa5e6c4ceeb0912758e4
260
- - test/dummy/tmp/cache/assets/development/sprockets/a668b6ff88911a6fc7ee3ed2bce99925
261
- - test/dummy/tmp/cache/assets/development/sprockets/adf63b8c230bec424832f299d6783649
262
- - test/dummy/tmp/cache/assets/development/sprockets/b9bd83a3b44c1d3d3f3475bd4c0cba7f
263
- - test/dummy/tmp/cache/assets/development/sprockets/c6c9787ab538d56f0bf078335b046968
264
- - test/dummy/tmp/cache/assets/development/sprockets/c7ee05b0bd8082e947e7f11a52d43d4d
265
- - test/dummy/tmp/cache/assets/development/sprockets/c8918b8c937b226f93f33acabc876a06
266
- - test/dummy/tmp/cache/assets/development/sprockets/cd2a0221f05ca5fd45fa56d923f36195
267
- - test/dummy/tmp/cache/assets/development/sprockets/cd456657bdefb4c3249301a5754fdbe2
268
- - test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
269
- - test/dummy/tmp/cache/assets/development/sprockets/d6c936f92dce001a74c5de9eff308ea2
270
- - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
271
- - test/dummy/tmp/cache/assets/development/sprockets/d78f431479fa8ad43875544b8c50d206
272
- - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
273
- - test/dummy/tmp/cache/assets/development/sprockets/fd60d93b12b3001c215f1c6581eca777
274
- - test/dummy/tmp/pids/server.pid
213
+ - test/generators/component_generator_test.rb
275
214
  - test/helpers/mountain_view/component_helper_test.rb
276
215
  - test/mountain_view_test.rb
277
216
  - test/test_helper.rb
278
- - test/tmp/app/components/mountain_view.css
279
- - test/tmp/app/components/mountain_view.js
217
+ - test/tmp/app/components/widget/_widget.html.erb
218
+ - test/tmp/app/components/widget/widget.css
219
+ - test/tmp/app/components/widget/widget.js
220
+ - test/tmp/app/components/widget/widget.yml
@@ -1 +0,0 @@
1
- 35192
@@ -1,3 +0,0 @@
1
- /*
2
- * require_tree .
3
- */
@@ -1 +0,0 @@
1
- //= require_tree .