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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -1
  3. data/app/helpers/half_pipe_helper.rb +10 -7
  4. data/lib/generators/half_pipe/install_generator.rb +2 -33
  5. data/lib/generators/half_pipe/templates/Gruntfile.js +6 -2
  6. data/lib/generators/half_pipe/templates/bower.json +1 -0
  7. data/lib/generators/half_pipe/templates/config/build.js +11 -0
  8. data/lib/generators/half_pipe/templates/tasks/options/connect.js +1 -1
  9. data/lib/generators/half_pipe/templates/tasks/options/copy.js +7 -9
  10. data/lib/generators/half_pipe/templates/tasks/options/requirejs.js +13 -39
  11. data/lib/generators/half_pipe/templates/tasks/options/sass.js +9 -7
  12. data/lib/half-pipe/version.rb +1 -1
  13. data/lib/sass/half_pipe_functions.rb +5 -1
  14. metadata +3 -58
  15. data/examples/rails/.bowerrc +0 -3
  16. data/examples/rails/.gitignore +0 -21
  17. data/examples/rails/.jshintrc +0 -34
  18. data/examples/rails/Gemfile +0 -38
  19. data/examples/rails/Gruntfile.js +0 -67
  20. data/examples/rails/README.rdoc +0 -28
  21. data/examples/rails/Rakefile +0 -6
  22. data/examples/rails/app/controllers/application_controller.rb +0 -5
  23. data/examples/rails/app/controllers/concerns/.keep +0 -0
  24. data/examples/rails/app/controllers/posts_controller.rb +0 -9
  25. data/examples/rails/app/helpers/application_helper.rb +0 -2
  26. data/examples/rails/app/mailers/.keep +0 -0
  27. data/examples/rails/app/models/.keep +0 -0
  28. data/examples/rails/app/models/concerns/.keep +0 -0
  29. data/examples/rails/app/models/post.rb +0 -27
  30. data/examples/rails/app/scripts/application.js +0 -27
  31. data/examples/rails/app/scripts/features/posts.js +0 -28
  32. data/examples/rails/app/scripts/main.js +0 -17
  33. data/examples/rails/app/styles/main.scss +0 -1
  34. data/examples/rails/app/views/layouts/application.html.erb +0 -14
  35. data/examples/rails/app/views/posts/index.html.erb +0 -7
  36. data/examples/rails/app/views/posts/show.html.erb +0 -2
  37. data/examples/rails/bin/bundle +0 -3
  38. data/examples/rails/bin/rails +0 -4
  39. data/examples/rails/bin/rake +0 -4
  40. data/examples/rails/bower.json +0 -9
  41. data/examples/rails/config/application.rb +0 -39
  42. data/examples/rails/config/boot.rb +0 -4
  43. data/examples/rails/config/environment.rb +0 -5
  44. data/examples/rails/config/environments/development.rb +0 -23
  45. data/examples/rails/config/environments/production.rb +0 -65
  46. data/examples/rails/config/environments/test.rb +0 -36
  47. data/examples/rails/config/initializers/backtrace_silencers.rb +0 -7
  48. data/examples/rails/config/initializers/filter_parameter_logging.rb +0 -4
  49. data/examples/rails/config/initializers/inflections.rb +0 -16
  50. data/examples/rails/config/initializers/mime_types.rb +0 -5
  51. data/examples/rails/config/initializers/sass.rb +0 -2
  52. data/examples/rails/config/initializers/secret_token.rb +0 -12
  53. data/examples/rails/config/initializers/session_store.rb +0 -3
  54. data/examples/rails/config/initializers/wrap_parameters.rb +0 -10
  55. data/examples/rails/config/locales/en.yml +0 -23
  56. data/examples/rails/config/routes.rb +0 -53
  57. data/examples/rails/config.ru +0 -4
  58. data/examples/rails/db/seeds.rb +0 -7
  59. data/examples/rails/lib/assets/.keep +0 -0
  60. data/examples/rails/lib/tasks/.keep +0 -0
  61. data/examples/rails/log/.keep +0 -0
  62. data/examples/rails/package.json +0 -15
  63. data/examples/rails/public/404.html +0 -58
  64. data/examples/rails/public/422.html +0 -58
  65. data/examples/rails/public/500.html +0 -57
  66. data/examples/rails/public/favicon.ico +0 -0
  67. data/examples/rails/public/robots.txt +0 -5
  68. data/examples/rails/vendor/assets/javascripts/.keep +0 -0
  69. data/examples/rails/vendor/assets/stylesheets/.keep +0 -0
  70. data/lib/generators/half_pipe/templates/app/scripts/application.js +0 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e25db15e868e377f593f10acc4d469b234b8e6a8
4
- data.tar.gz: 6a79cc94c56035c15fb9a43a64c3af950283fc38
3
+ metadata.gz: 9e779c2dd9479a1245d628d0d1b9301df8273d89
4
+ data.tar.gz: 7f7b736cf0996b856cdf9ef4a04b0bf894e398cc
5
5
  SHA512:
6
- metadata.gz: 4e2c8314902a381dd4fa1e81a94c3d5a3a8b16d211ce171913e008cebabaa8c171d2e597b2f8543ca22317faada95aa6fd358363f45dca20abffddcdf3bb2d76
7
- data.tar.gz: f54a68b26199cbe600a8b0056253eedc79fc68baae72b021204e09c1856fc84aeb8acd0b087ce5a783e48ee483d05635059393ea52f563e6f3257b7b48efeb03
6
+ metadata.gz: 25d694c6d65fdc4fb58901abc92c64d6e5a59a2cffb59a9cc3fb62f18a1d86e67148e27dc161ea0539fab5c312b858d61820f1a54c62a83524a1536e8acccef7
7
+ data.tar.gz: 02acde5fa5bf06feabb6c6772f193a4ed29b4ae82421e8038dd4a098e78f7c85fdaf6fa7ac07abe3ccdb04b57c6058f2d7b136e578fe1afb7991285e947b356e
data/README.md CHANGED
@@ -10,6 +10,16 @@ Half Pipe is a generator to get you up and running quickly with a Grunt setup fo
10
10
 
11
11
  This initial release assumes you have been using [Grunt.js](http://www.gruntjs.com) in non-Rails apps and would like to start using it in Rails as well. It uses [Bower](http://bower.io) for dependency management, [RequireJS](http://www.requirejs.org) for Javascript modules and Sass for CSS. If you use alternatives to these tools, we'd love to hear from you.
12
12
 
13
+ ## Alpha Version
14
+
15
+ **NOTE** This README refers to the current stable version of Half Pipe (v0.2.4 at the time of writing). To use the new, Grunt-based workflow see our [milestones][] and install an alpha version by specifying:
16
+
17
+ ```
18
+ gem 'half-pipe', '~>0.3.0.alpha'
19
+ ```
20
+
21
+ in your Gemfile.
22
+
13
23
  ## Looking for Contributors
14
24
 
15
25
  If you take a look at our [issue board on waffle.io](http://waffle.io/d-i/half-pipe) you'll see that we have some big plans for future releases of Half Pipe. If you are interested in working on a feature or fixing a bug, please feel free to move the issue to "In Progress" and send a PR when you're ready. If you have ideas or questions, please feel free to [open an issue](https://github.com/d-i/half-pipe/issues/new).
@@ -112,7 +122,7 @@ In this early release if you want to configure anything, you'll have to manually
112
122
 
113
123
  ## Roadmap
114
124
 
115
- We're currently undergoing some pretty major changes in the Half Pipe workflow. See our [milestones](/d-i/half-pipe/issues/milestones) for what's coming in the near future.
125
+ We're currently undergoing some pretty major changes in the Half Pipe workflow. See our [milestones][] for what's coming in the near future.
116
126
 
117
127
  ## Future Features
118
128
 
@@ -128,3 +138,5 @@ We're currently undergoing some pretty major changes in the Half Pipe workflow.
128
138
  - BYO support for less common languages
129
139
  - Automatic symlinking of CSS files within bower to SCSS partials within `app/styles`
130
140
  - Read .bowerrc for Bower directory
141
+
142
+ [milestones]: http://github.com/d-i/half-pipe/issues/milestones
@@ -1,12 +1,15 @@
1
1
  module HalfPipeHelper
2
2
 
3
- def requirejs_include_tag(script, options={})
4
- script, options = if Rails.application.config.half_pipe.env.debug?
5
- ["/components/requirejs/require.js", { data: { main: "/assets/scripts/application.js" } }]
6
- else
7
- ["/assets/scripts/application.js", {}]
8
- end
9
- javascript_include_tag script, options
3
+ def javascript_include_tag(source, options={})
4
+ base = File.basename(source)
5
+ source = File.join("/assets", "scripts", base)
6
+ super source, options
7
+ end
8
+
9
+ def image_tag(source, options={})
10
+ base = File.basename(source)
11
+ source = File.join("/assets", "images", base)
12
+ super(source, options)
10
13
  end
11
14
 
12
15
  end
@@ -8,20 +8,7 @@ module HalfPipe
8
8
  @_half_pipe_source_root ||= File.expand_path("../templates", __FILE__)
9
9
  end
10
10
 
11
- def welcome
12
- say "*" * 120
13
- say
14
- say "Welcome to Half Pipe!"
15
- say "I'm going to take some preliminary setup steps to get you going."
16
- say
17
- say "*" * 120
18
- end
19
-
20
11
  def create_config_files
21
- say
22
- say "First I need to generate config files for NPM & Bower. This is where you'll put your asset building and browser dependencies in the future."
23
- say
24
- sleep 3
25
12
  template "package.json", "package.json"
26
13
  template "_bowerrc", ".bowerrc"
27
14
  template "bower.json", "bower.json"
@@ -31,10 +18,6 @@ module HalfPipe
31
18
  end
32
19
 
33
20
  def remove_sprockets
34
- say
35
- say "Half Pipe uses app/scripts and app/styles for your JavaScript and Stylesheet templates. I need to update your application layout to point to those, plus remove any traces of sprockets."
36
- say
37
- sleep 3
38
21
  comment_lines "config/application.rb", %r{sprockets/railtie}
39
22
 
40
23
  railties_requires = File.read(File.join(self.class.source_root, "railties.rb"))
@@ -45,15 +28,11 @@ module HalfPipe
45
28
  end
46
29
 
47
30
  def insert_includes_into_layout
48
- insert_into_file "app/views/layouts/application.html.erb", %Q{ <%= requirejs_include_tag "/scripts/application.js" %>\n }, before: "</body>"
49
- insert_into_file "app/views/layouts/application.html.erb", %Q{ <%= stylesheet_link_tag "/styles/main.css" %>\n }, before: "</head>"
31
+ insert_into_file "app/views/layouts/application.html.erb", %Q{ <%= requirejs_include_tag "/assets/scripts/application.js" %>\n }, before: "</body>"
32
+ insert_into_file "app/views/layouts/application.html.erb", %Q{ <%= stylesheet_link_tag "/assets/styles/main" %>\n }, before: "</head>"
50
33
  end
51
34
 
52
35
  def generate_scripts
53
- say
54
- say "Now I can generate some starter templates for your requirejs configuration and Sass imports"
55
- say
56
- sleep 3
57
36
  empty_directory "app/scripts"
58
37
 
59
38
  template "app/scripts/main.js"
@@ -69,10 +48,6 @@ module HalfPipe
69
48
  end
70
49
 
71
50
  def generate_task_config_files
72
- say
73
- say "All of your Grunt tasks will be configured by files in #{Rails.root.join("tasks/options")}. After I'm done, have a look there to see if you need to customize anything."
74
- say
75
- sleep 3
76
51
  empty_directory "tasks/options"
77
52
 
78
53
  inside "tasks/options" do
@@ -107,13 +82,7 @@ module HalfPipe
107
82
 
108
83
  def finalize
109
84
 
110
- say
111
- say "Congratulations!".upcase
112
- say
113
-
114
85
  say "You may now safely migrate your assets to app/scripts and/or app/styles. Feel free to delete app/assets/javascripts and app/assets/stylesheets when you're done."
115
- say
116
- say "To start developing, fire up a development server with 'grunt server:debug'. You can continue to use 'http://localhost:3000' in your browser to access your app. I will take care of rebuilding your assets and restarting your Rails server as you work. Enjoy!"
117
86
  end
118
87
 
119
88
  protected
@@ -28,9 +28,13 @@ module.exports = function(grunt) {
28
28
  // Default task.
29
29
  grunt.registerTask('default', 'build:debug');
30
30
 
31
- grunt.registerTask('build:debug', ['copy:prepare', 'sass:debug', 'copy:stage']);
32
- grunt.registerTask('build:public', ['copy:prepare', 'sass:public', 'copy:stage', 'requirejs:public', 'copy:public']);
31
+ // Configure asset building pipeline
32
+ grunt.registerTask('build', ['build:debug']);
33
+ grunt.registerTask('build:debug', ['clean', 'copy:prepare', 'requirejs:debug', 'sass:debug']);
34
+ grunt.registerTask('build:public', ['clean', 'copy:prepare', 'requirejs:public', 'sass:public', 'copy:finalize']);
33
35
 
36
+ // Configure preview server
37
+ grunt.registerTask('server', ['server:debug']);
34
38
  grunt.registerTask('server:debug', ['build:debug', 'configureProxies', 'connect:debug', 'rails:server:start', 'watch']);
35
39
  grunt.registerTask('server:public', ['build:public', 'configureProxies', 'connect:public:keepalive']);
36
40
 
@@ -3,6 +3,7 @@
3
3
  "dependencies": {
4
4
  "html5shiv": "latest",
5
5
  "requirejs": "latest",
6
+ "jquery-ujs": "latest",
6
7
  "normalize-css": "latest"
7
8
  }
8
9
  }
@@ -0,0 +1,11 @@
1
+ requirejs.config({
2
+ wrap: true,
3
+ insertRequire: ['<%= main_module_name %>'],
4
+ deps: ['<%= main_module_name %>'],
5
+ shim: {
6
+ },
7
+ paths: {
8
+ '<%= main_module_name %>': 'main'
9
+ }
10
+ })
11
+
@@ -8,7 +8,7 @@ module.exports = {
8
8
  },
9
9
  debug: {
10
10
  options: {
11
- base: ["<%%= dirs.tmp %>/public", "<%%= bowerOpts.directory %>"]
11
+ base: ["<%%= dirs.tmp %>/public", "<%%= bowerOpts.directory || 'bower_components' %>"]
12
12
  }
13
13
  },
14
14
  "public": {
@@ -10,22 +10,20 @@ module.exports = {
10
10
  cwd: 'app/images',
11
11
  src: '**/*',
12
12
  dest: '<%%= dirs.tmp %>/prepare/assets/images'
13
- }]
14
- },
15
- stage: {
16
- files: [{
13
+ }, {
17
14
  expand: true,
18
- cwd: '<%%= dirs.tmp %>/prepare',
15
+ cwd: 'app/styles',
19
16
  src: '**/*',
20
- dest: '<%%= dirs.tmp %>/public'
17
+ dest: '<%%= dirs.tmp %>/prepare/assets/styles'
21
18
  }]
22
19
  },
23
- "public": {
20
+ finalize: {
24
21
  files: [{
25
22
  expand: true,
26
- cwd: '<%%= dirs.tmp %>/prepare',
27
- src: ['**/*', '!**/*.js'],
23
+ cwd: '<%%= dirs.tmp %>/public',
24
+ src: ['assets/**/*'],
28
25
  dest: 'public/'
29
26
  }]
30
27
  }
28
+ }
31
29
  };
@@ -1,45 +1,19 @@
1
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
+ },
2
14
  "public": {
3
15
  options: {
4
- name: "../../../../../node_modules/almond/almond",
5
- baseUrl: "<%%= dirs.tmp %>/public/assets/scripts",
6
- out: "public/assets/scripts/application.js",
7
- wrap: true,
8
- insertRequire: ['<%= main_module_name %>'],
9
- deps: ['<%= main_module_name %>'],
10
- shim: {
11
- 'jquery': { exports: '$' },
12
- 'jquery.textareaAutogrow': {
13
- deps: ['jquery']
14
- },
15
- 'pickadate/picker.date': {
16
- deps: ['pickadate/picker'],
17
- exports: 'Picker'
18
- },
19
- 'pickadate/picker.time': {
20
- deps: ['pickadate/picker'],
21
- exports: 'Picker'
22
- },
23
- 'pickadate/picker': {
24
- deps: ['jquery'],
25
- exports: 'Picker'
26
- }
27
- },
28
- paths: {
29
- '<%= main_module_name %>': 'main',
30
- 'flight': '../../../../../bower_components/flight',
31
- 'jquery': '../../../../../bower_components/jquery/jquery',
32
- 'lodash': '../../../../../bower_components/lodash/lodash',
33
- 'jquery-ujs': '../../../../../bower_components/jquery-ujs/src/rails',
34
- 'jquery.fileupload': '../../../../../bower_components/jquery-file-upload/js/jquery.fileupload',
35
- 'jquery.ui.widget': '../../../../../bower_components/jquery-file-upload/js/vendor/jquery.ui.widget',
36
- 'jquery.textareaAutogrow': '../../../../../bower_components/jquery.textareaAutogrow/jquery.textareaAutogrow',
37
- 'bacon': '../../../../../bower_components/bacon/dist/Bacon',
38
- 'bacon.jquery': '../../../../../bower_components/bacon.jquery/dist/bacon.jquery',
39
- 'zeroclipboard': '../../../../../bower_components/zeroclipboard/ZeroClipboard',
40
- 'pickadate': '../../../../../bower_components/pickadate/lib'
41
-
42
- }
16
+ optimize: "uglify2"
43
17
  }
44
18
  }
45
19
  };
@@ -1,19 +1,21 @@
1
1
  module.exports = {
2
2
  options: {
3
- style: 'expanded',
4
3
  require: ['sass-css-importer'],
5
4
  loadPath: ['<%%= bowerOpts.directory || "bower_components" %>'],
6
- bundleExec: true
5
+ bundleExec: true,
7
6
  },
8
7
  debug: {
9
- src: 'app/styles/main.scss',
10
- dest: '<%%= dirs.tmp %>/prepare/assets/styles/main.css'
8
+ src: '<%%= dirs.tmp %>/prepare/assets/styles/main.scss',
9
+ dest: '<%%= dirs.tmp %>/public/assets/styles/main.css',
10
+ options: {
11
+ style: 'expanded'
12
+ }
11
13
  },
12
14
  "public": {
15
+ src: '<%%= dirs.tmp %>/prepare/assets/styles/main.scss',
16
+ dest: '<%%= dirs.tmp %>/public/assets/styles/main.css',
13
17
  options: {
14
18
  style: 'compressed'
15
- },
16
- src: 'app/styles/main.scss',
17
- dest: '<%%= dirs.tmp %>/prepare/assets/styles/main.css'
19
+ }
18
20
  }
19
21
  };
@@ -1,5 +1,5 @@
1
1
  module Half
2
2
  module Pipe
3
- VERSION = "0.3.0.alpha.1"
3
+ VERSION = "0.3.0.alpha.2"
4
4
  end
5
5
  end
@@ -1,7 +1,11 @@
1
1
  module Sass::Script::Functions
2
2
 
3
3
  def image_url(path)
4
- Sass::Script::String.new("url(#{File.join("/images", path.value)})")
4
+ Sass::Script::String.new("url(#{File.join("/assets/images", path.value)})")
5
+ end
6
+
7
+ def image_path(path)
8
+ Sass::Script::String.new(File.join("/assets/images", path.value))
5
9
  end
6
10
 
7
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: half-pipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.alpha.1
4
+ version: 0.3.0.alpha.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Fiorini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-28 00:00:00.000000000 Z
11
+ date: 2013-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -52,70 +52,15 @@ files:
52
52
  - ROADMAP.md
53
53
  - Rakefile
54
54
  - app/helpers/half_pipe_helper.rb
55
- - examples/rails/.bowerrc
56
- - examples/rails/.gitignore
57
- - examples/rails/.jshintrc
58
- - examples/rails/Gemfile
59
- - examples/rails/Gruntfile.js
60
- - examples/rails/README.rdoc
61
- - examples/rails/Rakefile
62
- - examples/rails/app/controllers/application_controller.rb
63
- - examples/rails/app/controllers/concerns/.keep
64
- - examples/rails/app/controllers/posts_controller.rb
65
- - examples/rails/app/helpers/application_helper.rb
66
- - examples/rails/app/mailers/.keep
67
- - examples/rails/app/models/.keep
68
- - examples/rails/app/models/concerns/.keep
69
- - examples/rails/app/models/post.rb
70
- - examples/rails/app/scripts/application.js
71
- - examples/rails/app/scripts/features/posts.js
72
- - examples/rails/app/scripts/main.js
73
- - examples/rails/app/styles/main.scss
74
- - examples/rails/app/views/layouts/application.html.erb
75
- - examples/rails/app/views/posts/index.html.erb
76
- - examples/rails/app/views/posts/show.html.erb
77
- - examples/rails/bin/bundle
78
- - examples/rails/bin/rails
79
- - examples/rails/bin/rake
80
- - examples/rails/bower.json
81
- - examples/rails/config.ru
82
- - examples/rails/config/application.rb
83
- - examples/rails/config/boot.rb
84
- - examples/rails/config/environment.rb
85
- - examples/rails/config/environments/development.rb
86
- - examples/rails/config/environments/production.rb
87
- - examples/rails/config/environments/test.rb
88
- - examples/rails/config/initializers/backtrace_silencers.rb
89
- - examples/rails/config/initializers/filter_parameter_logging.rb
90
- - examples/rails/config/initializers/inflections.rb
91
- - examples/rails/config/initializers/mime_types.rb
92
- - examples/rails/config/initializers/sass.rb
93
- - examples/rails/config/initializers/secret_token.rb
94
- - examples/rails/config/initializers/session_store.rb
95
- - examples/rails/config/initializers/wrap_parameters.rb
96
- - examples/rails/config/locales/en.yml
97
- - examples/rails/config/routes.rb
98
- - examples/rails/db/seeds.rb
99
- - examples/rails/lib/assets/.keep
100
- - examples/rails/lib/tasks/.keep
101
- - examples/rails/log/.keep
102
- - examples/rails/package.json
103
- - examples/rails/public/404.html
104
- - examples/rails/public/422.html
105
- - examples/rails/public/500.html
106
- - examples/rails/public/favicon.ico
107
- - examples/rails/public/robots.txt
108
- - examples/rails/vendor/assets/javascripts/.keep
109
- - examples/rails/vendor/assets/stylesheets/.keep
110
55
  - half-pipe.gemspec
111
56
  - lib/generators/half_pipe/install_generator.rb
112
57
  - lib/generators/half_pipe/templates/Gruntfile.js
113
58
  - lib/generators/half_pipe/templates/_bowerrc
114
59
  - lib/generators/half_pipe/templates/_jshintrc
115
- - lib/generators/half_pipe/templates/app/scripts/application.js
116
60
  - lib/generators/half_pipe/templates/app/scripts/main.js
117
61
  - lib/generators/half_pipe/templates/app/styles/main.scss
118
62
  - lib/generators/half_pipe/templates/bower.json
63
+ - lib/generators/half_pipe/templates/config/build.js
119
64
  - lib/generators/half_pipe/templates/config/half-pipe.json
120
65
  - lib/generators/half_pipe/templates/package.json
121
66
  - lib/generators/half_pipe/templates/railties.rb
@@ -1,3 +0,0 @@
1
- {
2
- "json": "bower.json"
3
- }
@@ -1,21 +0,0 @@
1
- # See http://help.github.com/ignore-files/ for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
- /db/*.sqlite3-journal
13
-
14
- # Ignore all logfiles and tempfiles.
15
- /log/*.log
16
- /tmp
17
-
18
- node_modules
19
- components
20
-
21
- .sass-cache
@@ -1,34 +0,0 @@
1
- {
2
- "camelcase": true,
3
- "indent": 2,
4
- "white": false,
5
- "curly": true,
6
- "eqeqeq": true,
7
- "immed": true,
8
- "latedef": true,
9
- "newcap": false,
10
- "noarg": true,
11
- "sub": true,
12
- "undef": true,
13
- "boss": true,
14
- "eqnull": true,
15
- "browser": true,
16
- "globals": {
17
- "test": true,
18
- "asyncTest": true,
19
- "start": true,
20
- "expect": true,
21
- "module": true,
22
- "define": true,
23
- "sinon": true,
24
- "require": true,
25
- "console": true,
26
- "Class": true,
27
- "Events": true,
28
- "Options": true,
29
- "Element": true,
30
- "$": true,
31
- "$$": true
32
- }
33
- }
34
-
@@ -1,38 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
4
- gem 'rails', '4.0.0.rc1'
5
-
6
- # Use CoffeeScript for .js.coffee assets and views
7
- gem 'coffee-rails', '~> 4.0.0'
8
-
9
- # See https://github.com/sstephenson/execjs#readme for more supported runtimes
10
- # gem 'therubyracer', platforms: :ruby
11
-
12
- # Use jquery as the JavaScript library
13
- gem 'jquery-rails'
14
-
15
- # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
16
- gem 'turbolinks'
17
-
18
- # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
19
- gem 'jbuilder', '~> 1.0.1'
20
-
21
- gem 'half-pipe', path: '../../'
22
-
23
- group :doc do
24
- # bundle exec rake doc:rails generates the API under doc/api.
25
- gem 'sdoc', require: false
26
- end
27
-
28
- # Use ActiveModel has_secure_password
29
- # gem 'bcrypt-ruby', '~> 3.0.0'
30
-
31
- # Use unicorn as the app server
32
- # gem 'unicorn'
33
-
34
- # Use Capistrano for deployment
35
- # gem 'capistrano', group: :development
36
-
37
- # Use debugger
38
- # gem 'debugger', group: [:development, :test]
@@ -1,67 +0,0 @@
1
- /*global module:false*/
2
- module.exports = function(grunt) {
3
-
4
-
5
- // Project configuration.
6
- grunt.initConfig({
7
- // Metadata.
8
- pkg: grunt.file.readJSON('package.json'),
9
-
10
- jshint: {
11
- options: {
12
- jshintrc: '.jshintrc'
13
- },
14
- gruntfile: {
15
- src: 'Gruntfile.js'
16
- }
17
- },
18
-
19
- sass: {
20
- options: {
21
- style: 'expanded',
22
- require: ['./config/initializers/sass']
23
- },
24
- 'tmp/styles/main.css': [
25
- 'app/styles/main.scss'
26
- ]
27
- },
28
-
29
- cssmin: {
30
- 'public/styles/main.css': 'tmp/styles/main.css'
31
- },
32
-
33
- requirejs: {
34
- options: {
35
- baseUrl: "app/scripts",
36
- mainConfigFile: "app/scripts/application.js",
37
- name: "main",
38
- out: "public/scripts/application.js"
39
- },
40
- scripts: {
41
- }
42
- },
43
-
44
- copy: {
45
- 'public/scripts/require.js': 'components/requirejs/require.js'
46
- },
47
-
48
- clean: ['public/assets/', 'tmp/']
49
-
50
- });
51
-
52
- // These plugins provide necessary tasks.
53
- grunt.loadNpmTasks('grunt-contrib-jshint');
54
- grunt.loadNpmTasks('grunt-contrib-sass');
55
- grunt.loadNpmTasks('grunt-contrib-cssmin');
56
- grunt.loadNpmTasks('grunt-contrib-copy');
57
- grunt.loadNpmTasks('grunt-contrib-clean');
58
- grunt.loadNpmTasks('grunt-contrib-requirejs');
59
-
60
- // Default task.
61
- grunt.registerTask('default', 'build');
62
-
63
- // Build task.
64
- grunt.registerTask('build', ['jshint', 'sass', 'cssmin', 'copy', 'requirejs']);
65
-
66
- };
67
-
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Blog::Application.load_tasks
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
File without changes
@@ -1,9 +0,0 @@
1
- class PostsController < ApplicationController
2
- def index
3
- @posts = Post.all
4
- end
5
-
6
- def show
7
- @post = Post.find(params[:id])
8
- end
9
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
File without changes
File without changes
File without changes