arigato_rails 0.1.0

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.
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2013 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,52 @@
1
+ = ArigatoRails
2
+
3
+ {<img src="https://travis-ci.org/tnantoka/arigato_rails.png?branch=master" alt="Build Status" />}[https://travis-ci.org/tnantoka/arigato_rails]
4
+ {<img src="https://coveralls.io/repos/tnantoka/arigato_rails/badge.png?branch=master" alt="Coverage Status" />}[https://coveralls.io/r/tnantoka/arigato_rails]
5
+ {<img src="https://gemnasium.com/tnantoka/arigato_rails.png" alt="Dependency Status" />}[https://gemnasium.com/tnantoka/arigato_rails]
6
+ {<img src="https://codeclimate.com/github/tnantoka/arigato_rails.png" alt="Code Climate" />}[https://codeclimate.com/github/tnantoka/arigato_rails]
7
+ {<img src="http://api.coderwall.com/tnantoka/endorsecount.png" alt="endorse" />}[http://coderwall.com/tnantoka]
8
+
9
+ * {Homepage}[https://github.com/tnantoka/arigato_rails#readme]
10
+ * {Issues}[https://github.com/tnantoka/arigato_rails/issues]
11
+ * {Documentation}[http://rubydoc.info/gems/arigato_rails/frames]
12
+ * {Email}[mailto:bornneet at livedoor.com]
13
+
14
+ == Description
15
+
16
+ Auto generated special thanks page for Rails
17
+
18
+ See also: {arigato gem}[https://github.com/tnantoka/arigato]
19
+
20
+ == Features
21
+
22
+ Provides special thanks page generated from your Gemfile.
23
+
24
+ == Examples
25
+
26
+ * http://arigato_rails_example.tobioka.net/thanks
27
+ * https://github.com/tnantoka/arigato_rails_example
28
+
29
+ == Requirements
30
+
31
+ * Ruby 1.9+
32
+ * Rails 3.2+
33
+
34
+ == Install
35
+
36
+ # Gemfile
37
+ gem 'arigato_rails'
38
+ $ bundle install
39
+
40
+ # config/initializers/arigato_rails.rb
41
+ Rails.configuration.arigato_rails.theme = 'bootstrap'
42
+
43
+ # Optional
44
+ # config/routes.rb
45
+ mount_thanks
46
+ resources :users, path: '' # catch-all routes
47
+
48
+ == Copyright
49
+
50
+ Copyright (c) 2013 tnantoka
51
+
52
+ See LICENSE.txt for details.
data/Rakefile ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'ArigatoRails'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
24
+ load 'rails/tasks/engine.rake'
25
+
26
+
27
+
28
+ Bundler::GemHelper.install_tasks
29
+
30
+ require 'rspec/core/rake_task'
31
+ RSpec::Core::RakeTask.new(:spec)
@@ -0,0 +1,15 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require_tree .
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,13 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require_tree .
13
+ */
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,2 @@
1
+ class ApplicationController < ActionController::Base
2
+ end
@@ -0,0 +1,14 @@
1
+ require_dependency "arigato_rails/application_controller"
2
+ require 'arigato'
3
+
4
+ module ArigatoRails
5
+ class ThanksController < ApplicationController
6
+ def index
7
+ view = Arigato::View.new(Rails.configuration.arigato_rails.theme, File.join(Rails.root, 'Gemfile'), false)
8
+ @title = view.title
9
+ @specs = view.specs
10
+ # DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply remove the handler name or pass render :handlers => [:erb] instead.
11
+ render file: view.content_file.gsub(%r!.html.erb!, '')
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,4 @@
1
+ module ArigatoRails
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module ArigatoRails
2
+ module ThanksHelper
3
+ end
4
+ end
data/config/routes.rb ADDED
@@ -0,0 +1,6 @@
1
+ #ArigatoRails::Engine.routes.draw do
2
+ # root to: 'thanks#index'
3
+ #end
4
+ Rails.application.routes.draw do
5
+ mount_thanks
6
+ end
@@ -0,0 +1,12 @@
1
+ module ArigatoRails
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace ArigatoRails
4
+
5
+ config.arigato_rails = ActiveSupport::OrderedOptions.new
6
+ config.arigato_rails.theme = 'default'
7
+
8
+ config.generators do |g|
9
+ g.test_framework :rspec, helper_specs: false, view_specs: false
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,3 @@
1
+ module ArigatoRails
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,5 @@
1
+ require "arigato_rails/engine"
2
+ require "rails/routes"
3
+
4
+ module ArigatoRails
5
+ end
@@ -0,0 +1,8 @@
1
+ module ActionDispatch::Routing
2
+ class Mapper
3
+ def mount_thanks
4
+ get 'thanks' => 'arigato_rails/thanks#index'
5
+ mount ArigatoRails::Engine => '/thanks', :as => 'arigato_rails'
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :arigato_rails do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,228 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: arigato_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - tnantoka
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-03-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: arigato
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: sqlite3
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rspec-rails
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: capybara
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: simplecov
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: coveralls
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: less-rails
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: therubyracer
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: twitter-bootstrap-rails
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ description: Provides special thanks page generated from your Gemfile.
175
+ email:
176
+ - bornneet@livedoor.com
177
+ executables: []
178
+ extensions: []
179
+ extra_rdoc_files: []
180
+ files:
181
+ - app/assets/javascripts/arigato_rails/application.js
182
+ - app/assets/javascripts/arigato_rails/thanks.js
183
+ - app/assets/stylesheets/arigato_rails/application.css
184
+ - app/assets/stylesheets/arigato_rails/thanks.css
185
+ - app/controllers/arigato_rails/application_controller.rb
186
+ - app/controllers/arigato_rails/thanks_controller.rb
187
+ - app/helpers/arigato_rails/application_helper.rb
188
+ - app/helpers/arigato_rails/thanks_helper.rb
189
+ - config/routes.rb
190
+ - lib/arigato_rails/engine.rb
191
+ - lib/arigato_rails/version.rb
192
+ - lib/arigato_rails.rb
193
+ - lib/rails/routes.rb
194
+ - lib/tasks/arigato_rails_tasks.rake
195
+ - MIT-LICENSE
196
+ - Rakefile
197
+ - README.rdoc
198
+ homepage: https://github.com/tnantoka/arigato_rails#readme
199
+ licenses: []
200
+ post_install_message:
201
+ rdoc_options: []
202
+ require_paths:
203
+ - lib
204
+ required_ruby_version: !ruby/object:Gem::Requirement
205
+ none: false
206
+ requirements:
207
+ - - ! '>='
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ segments:
211
+ - 0
212
+ hash: -1774735851944352937
213
+ required_rubygems_version: !ruby/object:Gem::Requirement
214
+ none: false
215
+ requirements:
216
+ - - ! '>='
217
+ - !ruby/object:Gem::Version
218
+ version: '0'
219
+ segments:
220
+ - 0
221
+ hash: -1774735851944352937
222
+ requirements: []
223
+ rubyforge_project:
224
+ rubygems_version: 1.8.25
225
+ signing_key:
226
+ specification_version: 3
227
+ summary: Auto generated special thanks page for Rails
228
+ test_files: []