half-pipe 0.3.0.alpha.2 → 0.3.0.alpha.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/examples/todomvc-rails/.bowerrc +3 -0
  3. data/examples/todomvc-rails/.gitignore +20 -0
  4. data/examples/todomvc-rails/.jshintrc +34 -0
  5. data/examples/todomvc-rails/Gemfile +40 -0
  6. data/examples/todomvc-rails/Gruntfile.js +42 -0
  7. data/examples/todomvc-rails/README.rdoc +5 -0
  8. data/examples/todomvc-rails/Rakefile +6 -0
  9. data/examples/todomvc-rails/app/controllers/application_controller.rb +5 -0
  10. data/examples/todomvc-rails/app/controllers/concerns/.keep +0 -0
  11. data/examples/todomvc-rails/app/controllers/todos_controller.rb +69 -0
  12. data/examples/todomvc-rails/app/helpers/application_helper.rb +2 -0
  13. data/examples/todomvc-rails/app/helpers/todos_helper.rb +5 -0
  14. data/examples/todomvc-rails/app/mailers/.keep +0 -0
  15. data/examples/todomvc-rails/app/models/.keep +0 -0
  16. data/examples/todomvc-rails/app/models/concerns/.keep +0 -0
  17. data/examples/todomvc-rails/app/models/todo.rb +8 -0
  18. data/examples/todomvc-rails/app/scripts/main.js +53 -0
  19. data/examples/todomvc-rails/app/scripts/todo-title-input.js +57 -0
  20. data/examples/todomvc-rails/app/styles/base.scss +415 -0
  21. data/examples/todomvc-rails/app/styles/main.scss +2 -0
  22. data/examples/todomvc-rails/app/styles/todos.scss +29 -0
  23. data/examples/todomvc-rails/app/views/layouts/application.html.erb +14 -0
  24. data/examples/todomvc-rails/app/views/layouts/todos.js.erb +7 -0
  25. data/examples/todomvc-rails/app/views/todos/_destroy.js.erb +1 -0
  26. data/examples/todomvc-rails/app/views/todos/_footer.html.erb +21 -0
  27. data/examples/todomvc-rails/app/views/todos/_todo.html.erb +14 -0
  28. data/examples/todomvc-rails/app/views/todos/_toggle.js.erb +4 -0
  29. data/examples/todomvc-rails/app/views/todos/create.js.erb +3 -0
  30. data/examples/todomvc-rails/app/views/todos/destroy.js.erb +1 -0
  31. data/examples/todomvc-rails/app/views/todos/destroy_completed.js.erb +1 -0
  32. data/examples/todomvc-rails/app/views/todos/index.html.erb +33 -0
  33. data/examples/todomvc-rails/app/views/todos/toggle.js.erb +1 -0
  34. data/examples/todomvc-rails/app/views/todos/toggle_all.js.erb +1 -0
  35. data/examples/todomvc-rails/app/views/todos/update.js.erb +1 -0
  36. data/examples/todomvc-rails/bin/bundle +3 -0
  37. data/examples/todomvc-rails/bin/rails +4 -0
  38. data/examples/todomvc-rails/bin/rake +4 -0
  39. data/examples/todomvc-rails/bower.json +10 -0
  40. data/examples/todomvc-rails/config.ru +4 -0
  41. data/examples/todomvc-rails/config/application.rb +28 -0
  42. data/examples/todomvc-rails/config/boot.rb +4 -0
  43. data/examples/todomvc-rails/config/build.js +14 -0
  44. data/examples/todomvc-rails/config/database.yml +19 -0
  45. data/examples/todomvc-rails/config/environment.rb +5 -0
  46. data/examples/todomvc-rails/config/environments/development.rb +29 -0
  47. data/examples/todomvc-rails/config/environments/production.rb +80 -0
  48. data/examples/todomvc-rails/config/environments/test.rb +36 -0
  49. data/examples/todomvc-rails/config/half-pipe.json +3 -0
  50. data/examples/todomvc-rails/config/initializers/backtrace_silencers.rb +7 -0
  51. data/examples/todomvc-rails/config/initializers/filter_parameter_logging.rb +4 -0
  52. data/examples/todomvc-rails/config/initializers/inflections.rb +16 -0
  53. data/examples/todomvc-rails/config/initializers/mime_types.rb +5 -0
  54. data/examples/todomvc-rails/config/initializers/secret_token.rb +12 -0
  55. data/examples/todomvc-rails/config/initializers/session_store.rb +3 -0
  56. data/examples/todomvc-rails/config/initializers/wrap_parameters.rb +14 -0
  57. data/examples/todomvc-rails/config/locales/en.yml +23 -0
  58. data/examples/todomvc-rails/config/routes.rb +16 -0
  59. data/examples/todomvc-rails/db/migrate/20130518030840_create_todos.rb +9 -0
  60. data/examples/todomvc-rails/db/schema.rb +23 -0
  61. data/examples/todomvc-rails/db/seeds.rb +7 -0
  62. data/examples/todomvc-rails/lib/assets/.keep +0 -0
  63. data/examples/todomvc-rails/lib/tasks/.keep +0 -0
  64. data/examples/todomvc-rails/log/.keep +0 -0
  65. data/examples/todomvc-rails/package.json +22 -0
  66. data/examples/todomvc-rails/public/404.html +58 -0
  67. data/examples/todomvc-rails/public/422.html +58 -0
  68. data/examples/todomvc-rails/public/500.html +57 -0
  69. data/examples/todomvc-rails/public/favicon.ico +0 -0
  70. data/examples/todomvc-rails/public/robots.txt +5 -0
  71. data/examples/todomvc-rails/tasks/options/connect.js +63 -0
  72. data/examples/todomvc-rails/tasks/options/copy.js +28 -0
  73. data/examples/todomvc-rails/tasks/options/cssmin.js +3 -0
  74. data/examples/todomvc-rails/tasks/options/jshint.js +8 -0
  75. data/examples/todomvc-rails/tasks/options/rails.js +5 -0
  76. data/examples/todomvc-rails/tasks/options/requirejs.js +19 -0
  77. data/examples/todomvc-rails/tasks/options/sass.js +21 -0
  78. data/examples/todomvc-rails/tasks/options/watch.js +13 -0
  79. data/examples/todomvc-rails/test/controllers/.keep +0 -0
  80. data/examples/todomvc-rails/test/fixtures/.keep +0 -0
  81. data/examples/todomvc-rails/test/fixtures/todos.yml +11 -0
  82. data/examples/todomvc-rails/test/helpers/.keep +0 -0
  83. data/examples/todomvc-rails/test/integration/.keep +0 -0
  84. data/examples/todomvc-rails/test/mailers/.keep +0 -0
  85. data/examples/todomvc-rails/test/models/.keep +0 -0
  86. data/examples/todomvc-rails/test/models/todo_test.rb +7 -0
  87. data/examples/todomvc-rails/test/test_helper.rb +15 -0
  88. data/examples/todomvc-rails/vendor/assets/javascripts/.keep +0 -0
  89. data/examples/todomvc-rails/vendor/assets/stylesheets/.keep +0 -0
  90. data/lib/generators/half_pipe/install_generator.rb +2 -1
  91. data/lib/generators/half_pipe/templates/app/scripts/main.js +3 -5
  92. data/lib/generators/half_pipe/templates/config/build.js +4 -0
  93. data/lib/generators/half_pipe/templates/railties.rb +0 -1
  94. data/lib/generators/half_pipe/templates/tasks/options/copy.js +0 -1
  95. data/lib/half-pipe/version.rb +1 -1
  96. metadata +91 -1
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ options: {
3
+ port: 3001
4
+ }
5
+ };
@@ -0,0 +1,19 @@
1
+ module.exports = {
2
+ options: {
3
+ name: "../../../../../node_modules/almond/almond",
4
+ out: "<%= dirs.tmp %>/public/assets/scripts/application.js",
5
+ baseUrl: "<%= dirs.tmp %>/prepare/assets/scripts",
6
+ mainConfigFile: "config/build.js"
7
+ },
8
+ debug: {
9
+ options: {
10
+ useSourceUrl: true,
11
+ optimize: "none",
12
+ }
13
+ },
14
+ "public": {
15
+ options: {
16
+ optimize: "uglify2"
17
+ }
18
+ }
19
+ };
@@ -0,0 +1,21 @@
1
+ module.exports = {
2
+ options: {
3
+ require: ['sass-css-importer'],
4
+ loadPath: ['<%= bowerOpts.directory || "bower_components" %>'],
5
+ bundleExec: true,
6
+ },
7
+ debug: {
8
+ src: '<%= dirs.tmp %>/prepare/assets/styles/main.scss',
9
+ dest: '<%= dirs.tmp %>/public/assets/styles/main.css',
10
+ options: {
11
+ style: 'expanded'
12
+ }
13
+ },
14
+ "public": {
15
+ src: '<%= dirs.tmp %>/prepare/assets/styles/main.scss',
16
+ dest: '<%= dirs.tmp %>/public/assets/styles/main.css',
17
+ options: {
18
+ style: 'compressed'
19
+ }
20
+ }
21
+ };
@@ -0,0 +1,13 @@
1
+ module.exports = {
2
+ debug: {
3
+ files: ['app/scripts/**/*', 'app/styles/**/*'],
4
+ tasks: ['build:debug']
5
+ },
6
+ rails: {
7
+ files: ['config/**/*.rb', 'lib/**/*.rb', 'Gemfile.lock'],
8
+ tasks: ['rails:server:restart'],
9
+ options: {
10
+ interrupt: true
11
+ }
12
+ }
13
+ };
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class TodoTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,15 @@
1
+ ENV["RAILS_ENV"] ||= "test"
2
+ require File.expand_path('../../config/environment', __FILE__)
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ ActiveRecord::Migration.check_pending!
7
+
8
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
9
+ #
10
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
11
+ # -- they do not yet inherit this setting
12
+ fixtures :all
13
+
14
+ # Add more helper methods to be used by all tests here...
15
+ end
@@ -36,7 +36,8 @@ module HalfPipe
36
36
  empty_directory "app/scripts"
37
37
 
38
38
  template "app/scripts/main.js"
39
- template "app/scripts/application.js"
39
+
40
+ template "config/build.js"
40
41
  end
41
42
 
42
43
  def generate_stylesheets
@@ -3,15 +3,13 @@
3
3
  define('<%= main_module_name %>',
4
4
  [
5
5
  // Add your dependencies here
6
+ 'jquery',
7
+ 'jquery-ujs'
6
8
  ],
7
9
 
8
- function(/* modules */){
10
+ function($){
9
11
 
10
- function initialize(){
11
12
  // Add your initialization code here
12
- }
13
-
14
- return initialize;
15
13
 
16
14
  }
17
15
  );
@@ -6,6 +6,10 @@ requirejs.config({
6
6
  },
7
7
  paths: {
8
8
  '<%= main_module_name %>': 'main'
9
+ 'jquery': '../../../../../bower_components/jquery/jquery',
10
+
11
+ 'jquery-ujs': '../../../../../bower_components/jquery-ujs/src/rails'
12
+
9
13
  }
10
14
  })
11
15
 
@@ -2,6 +2,5 @@ require "active_record/railtie"
2
2
  # require "sprockets/railtie"
3
3
  require "action_controller/railtie"
4
4
  require "action_mailer/railtie"
5
- require "active_resource/railtie"
6
5
  require "rails/test_unit/railtie"
7
6
 
@@ -25,5 +25,4 @@ module.exports = {
25
25
  dest: 'public/'
26
26
  }]
27
27
  }
28
- }
29
28
  };
@@ -1,5 +1,5 @@
1
1
  module Half
2
2
  module Pipe
3
- VERSION = "0.3.0.alpha.2"
3
+ VERSION = "0.3.0.alpha.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: half-pipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.alpha.2
4
+ version: 0.3.0.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Fiorini
@@ -52,6 +52,96 @@ files:
52
52
  - ROADMAP.md
53
53
  - Rakefile
54
54
  - app/helpers/half_pipe_helper.rb
55
+ - examples/todomvc-rails/.bowerrc
56
+ - examples/todomvc-rails/.gitignore
57
+ - examples/todomvc-rails/.jshintrc
58
+ - examples/todomvc-rails/Gemfile
59
+ - examples/todomvc-rails/Gemfile.lock
60
+ - examples/todomvc-rails/Gruntfile.js
61
+ - examples/todomvc-rails/README.rdoc
62
+ - examples/todomvc-rails/Rakefile
63
+ - examples/todomvc-rails/app/controllers/application_controller.rb
64
+ - examples/todomvc-rails/app/controllers/concerns/.keep
65
+ - examples/todomvc-rails/app/controllers/todos_controller.rb
66
+ - examples/todomvc-rails/app/helpers/application_helper.rb
67
+ - examples/todomvc-rails/app/helpers/todos_helper.rb
68
+ - examples/todomvc-rails/app/mailers/.keep
69
+ - examples/todomvc-rails/app/models/.keep
70
+ - examples/todomvc-rails/app/models/concerns/.keep
71
+ - examples/todomvc-rails/app/models/todo.rb
72
+ - examples/todomvc-rails/app/scripts/main.js
73
+ - examples/todomvc-rails/app/scripts/todo-title-input.js
74
+ - examples/todomvc-rails/app/styles/base.scss
75
+ - examples/todomvc-rails/app/styles/main.scss
76
+ - examples/todomvc-rails/app/styles/todos.scss
77
+ - examples/todomvc-rails/app/views/layouts/application.html.erb
78
+ - examples/todomvc-rails/app/views/layouts/todos.js.erb
79
+ - examples/todomvc-rails/app/views/todos/_destroy.js.erb
80
+ - examples/todomvc-rails/app/views/todos/_footer.html.erb
81
+ - examples/todomvc-rails/app/views/todos/_todo.html.erb
82
+ - examples/todomvc-rails/app/views/todos/_toggle.js.erb
83
+ - examples/todomvc-rails/app/views/todos/create.js.erb
84
+ - examples/todomvc-rails/app/views/todos/destroy.js.erb
85
+ - examples/todomvc-rails/app/views/todos/destroy_completed.js.erb
86
+ - examples/todomvc-rails/app/views/todos/index.html.erb
87
+ - examples/todomvc-rails/app/views/todos/toggle.js.erb
88
+ - examples/todomvc-rails/app/views/todos/toggle_all.js.erb
89
+ - examples/todomvc-rails/app/views/todos/update.js.erb
90
+ - examples/todomvc-rails/bin/bundle
91
+ - examples/todomvc-rails/bin/rails
92
+ - examples/todomvc-rails/bin/rake
93
+ - examples/todomvc-rails/bower.json
94
+ - examples/todomvc-rails/config.ru
95
+ - examples/todomvc-rails/config/application.rb
96
+ - examples/todomvc-rails/config/boot.rb
97
+ - examples/todomvc-rails/config/build.js
98
+ - examples/todomvc-rails/config/database.yml
99
+ - examples/todomvc-rails/config/environment.rb
100
+ - examples/todomvc-rails/config/environments/development.rb
101
+ - examples/todomvc-rails/config/environments/production.rb
102
+ - examples/todomvc-rails/config/environments/test.rb
103
+ - examples/todomvc-rails/config/half-pipe.json
104
+ - examples/todomvc-rails/config/initializers/backtrace_silencers.rb
105
+ - examples/todomvc-rails/config/initializers/filter_parameter_logging.rb
106
+ - examples/todomvc-rails/config/initializers/inflections.rb
107
+ - examples/todomvc-rails/config/initializers/mime_types.rb
108
+ - examples/todomvc-rails/config/initializers/secret_token.rb
109
+ - examples/todomvc-rails/config/initializers/session_store.rb
110
+ - examples/todomvc-rails/config/initializers/wrap_parameters.rb
111
+ - examples/todomvc-rails/config/locales/en.yml
112
+ - examples/todomvc-rails/config/routes.rb
113
+ - examples/todomvc-rails/db/migrate/20130518030840_create_todos.rb
114
+ - examples/todomvc-rails/db/schema.rb
115
+ - examples/todomvc-rails/db/seeds.rb
116
+ - examples/todomvc-rails/lib/assets/.keep
117
+ - examples/todomvc-rails/lib/tasks/.keep
118
+ - examples/todomvc-rails/log/.keep
119
+ - examples/todomvc-rails/package.json
120
+ - examples/todomvc-rails/public/404.html
121
+ - examples/todomvc-rails/public/422.html
122
+ - examples/todomvc-rails/public/500.html
123
+ - examples/todomvc-rails/public/assets/images/bg.png
124
+ - examples/todomvc-rails/public/favicon.ico
125
+ - examples/todomvc-rails/public/robots.txt
126
+ - examples/todomvc-rails/tasks/options/connect.js
127
+ - examples/todomvc-rails/tasks/options/copy.js
128
+ - examples/todomvc-rails/tasks/options/cssmin.js
129
+ - examples/todomvc-rails/tasks/options/jshint.js
130
+ - examples/todomvc-rails/tasks/options/rails.js
131
+ - examples/todomvc-rails/tasks/options/requirejs.js
132
+ - examples/todomvc-rails/tasks/options/sass.js
133
+ - examples/todomvc-rails/tasks/options/watch.js
134
+ - examples/todomvc-rails/test/controllers/.keep
135
+ - examples/todomvc-rails/test/fixtures/.keep
136
+ - examples/todomvc-rails/test/fixtures/todos.yml
137
+ - examples/todomvc-rails/test/helpers/.keep
138
+ - examples/todomvc-rails/test/integration/.keep
139
+ - examples/todomvc-rails/test/mailers/.keep
140
+ - examples/todomvc-rails/test/models/.keep
141
+ - examples/todomvc-rails/test/models/todo_test.rb
142
+ - examples/todomvc-rails/test/test_helper.rb
143
+ - examples/todomvc-rails/vendor/assets/javascripts/.keep
144
+ - examples/todomvc-rails/vendor/assets/stylesheets/.keep
55
145
  - half-pipe.gemspec
56
146
  - lib/generators/half_pipe/install_generator.rb
57
147
  - lib/generators/half_pipe/templates/Gruntfile.js