designmodo-startup_framework-rails 1.1.3.1 → 1.1.3.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75a6661134c0b3914b1da7b63fa5e8aadd6be068
|
4
|
+
data.tar.gz: 2c79abf82a9399755a7177ac10d57b7751889f3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef36a546d16100d6eae80429b78d35abef665131435a32dcea0f17d2ce8428f03648e9338fee7726e090cb9ecbb1d29336f3ac8c3ca006176c349f2268ba22a0
|
7
|
+
data.tar.gz: 7ba0af1fcbe5f48c20ec2f3220a483265c59c78be0fb9bf0216416fb129a927a6f2c4afb96303de74d43ac086c3893ac181d07ca4bf350a676e2d24c8ac4f014
|
@@ -8,8 +8,8 @@ module StartupFramework
|
|
8
8
|
argument :startup_dir, :type => :string, :banner => "<Licensed Startup Framework directory>"
|
9
9
|
source_root File.expand_path("../templates", __FILE__)
|
10
10
|
|
11
|
-
@common_files =
|
12
|
-
@ui_kit =
|
11
|
+
@common_files = "common-files"
|
12
|
+
@ui_kit = "ui-kit"
|
13
13
|
|
14
14
|
def copy_assets
|
15
15
|
gem_assets_dir = File.expand_path("../../../../../app/assets", __FILE__)
|
data/lib/tests/test.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'test_helper')
|
2
|
+
|
3
|
+
require 'generators/cells/cell_generator'
|
4
|
+
|
5
|
+
class CellGeneratorTest < Rails::Generators::TestCase
|
6
|
+
destination File.join(Rails.root, "tmp")
|
7
|
+
setup :prepare_destination
|
8
|
+
tests ::StartupFramework::Generators::InstallGenerator
|
9
|
+
|
10
|
+
test "copy assets" do
|
11
|
+
run_generator %w(/Users/roney/Workspace/artifacts/StartupFramework)
|
12
|
+
|
13
|
+
assert_file "app/cells/blog_cell.rb", /class BlogCell < Cell::Rails/
|
14
|
+
assert_file "app/cells/blog_cell.rb", /def post/
|
15
|
+
assert_file "app/cells/blog_cell.rb", /def latest/
|
16
|
+
assert_file "app/cells/blog/post.html.erb", %r(app/cells/blog/post.html.erb)
|
17
|
+
assert_file "app/cells/blog/latest.html.erb", %r(app/cells/blog/latest.html.erb)
|
18
|
+
assert_file "test/cells/blog_cell_test.rb"
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: designmodo-startup_framework-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.3.
|
4
|
+
version: 1.1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vertmac
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- lib/generators/startup_framework/install/install_generator.rb
|
69
69
|
- lib/generators/startup_framework/install/templates/startup_framework.js
|
70
70
|
- lib/generators/startup_framework/install/templates/startup_framework.less
|
71
|
+
- lib/tests/test.rb
|
71
72
|
homepage: https://github.com/reflection/designmodo-startup_framework-rails
|
72
73
|
licenses:
|
73
74
|
- Simplified BSD
|