glass-rails 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +26 -13
- data/lib/generators/.DS_Store +0 -0
- data/lib/generators/glass/.DS_Store +0 -0
- data/lib/generators/glass/install/.DS_Store +0 -0
- data/lib/generators/glass/install/install_generator.rb +3 -0
- data/lib/generators/glass/install/templates/.DS_Store +0 -0
- data/lib/generators/glass/{templates/templates → install/templates/glass_templates}/image_full.html.erb +0 -0
- data/lib/generators/glass/{templates/templates → install/templates/glass_templates}/image_left_with_section_right.html.erb +0 -0
- data/lib/generators/glass/{templates/templates → install/templates/glass_templates}/image_left_with_table_right.html.erb +0 -0
- data/lib/generators/glass/{templates/templates → install/templates/glass_templates}/list.html.erb +0 -0
- data/lib/generators/glass/{templates/templates → install/templates/glass_templates}/simple.html.erb +0 -0
- data/lib/generators/glass/{templates/templates → install/templates/glass_templates}/table.html.erb +0 -0
- data/lib/generators/glass/{templates/templates → install/templates/glass_templates}/two_column.html.erb +0 -0
- data/lib/generators/glass/{templates/templates → install/templates/glass_templates}/two_column_with_emphasis_left.html.erb +0 -0
- data/lib/generators/glass/{templates → model}/.DS_Store +0 -0
- data/lib/glass/rails/version.rb +1 -1
- metadata +13 -12
- data/lib/generators/glass/templates/templates_generator.rb +0 -16
data/README.md
CHANGED
@@ -31,19 +31,8 @@ This will generate a yaml file for your keys, an initializer for
|
|
31
31
|
setting up configuration details, and migrations for the appropriate
|
32
32
|
tables.
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
This gem includes a template generator, which provides a basic
|
37
|
-
set of default templates (derived directly from the recommended templates
|
38
|
-
which are shown in the glass playground).
|
39
|
-
|
40
|
-
To generate the default templates, you can run the command:
|
41
|
-
|
42
|
-
rails g glass:templates
|
43
|
-
|
44
|
-
This will generate a basic series of templates under the path,
|
45
|
-
`app/views/glass` though you may want to organize them more logically,
|
46
|
-
depending on your use case
|
34
|
+
Additionally, the install generator will create a set of html.erb templates for you to use (optionally) when creating timeline items to post to a user. The templates will be created under the directory
|
35
|
+
`app/views/glass` though you may want to organize them more logically, depending on your use case.
|
47
36
|
|
48
37
|
### Glass Models - (Introduction)
|
49
38
|
|
@@ -222,6 +211,30 @@ in the body object when it gets posted. You can therefore do something like this
|
|
222
211
|
```ruby
|
223
212
|
gt.insert(speakableText: "some text to be read aloud")
|
224
213
|
```
|
214
|
+
## License
|
215
|
+
|
216
|
+
Copyright (c) 2013 Thirst Labs, Inc.
|
217
|
+
|
218
|
+
MIT License
|
219
|
+
|
220
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
221
|
+
a copy of this software and associated documentation files (the
|
222
|
+
"Software"), to deal in the Software without restriction, including
|
223
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
224
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
225
|
+
permit persons to whom the Software is furnished to do so, subject to
|
226
|
+
the following conditions:
|
227
|
+
|
228
|
+
The above copyright notice and this permission notice shall be
|
229
|
+
included in all copies or substantial portions of the Software.
|
230
|
+
|
231
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
232
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
233
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
234
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
235
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
236
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
237
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
225
238
|
|
226
239
|
## Contributing
|
227
240
|
|
data/lib/generators/.DS_Store
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
data/lib/generators/glass/{templates/templates → install/templates/glass_templates}/list.html.erb
RENAMED
File without changes
|
data/lib/generators/glass/{templates/templates → install/templates/glass_templates}/simple.html.erb
RENAMED
File without changes
|
data/lib/generators/glass/{templates/templates → install/templates/glass_templates}/table.html.erb
RENAMED
File without changes
|
File without changes
|
File without changes
|
Binary file
|
data/lib/glass/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glass-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-06-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
@@ -160,24 +160,25 @@ files:
|
|
160
160
|
- lib/generators/.DS_Store
|
161
161
|
- lib/generators/glass.rb
|
162
162
|
- lib/generators/glass/.DS_Store
|
163
|
+
- lib/generators/glass/install/.DS_Store
|
163
164
|
- lib/generators/glass/install/install_generator.rb
|
165
|
+
- lib/generators/glass/install/templates/.DS_Store
|
166
|
+
- lib/generators/glass/install/templates/glass_templates/image_full.html.erb
|
167
|
+
- lib/generators/glass/install/templates/glass_templates/image_left_with_section_right.html.erb
|
168
|
+
- lib/generators/glass/install/templates/glass_templates/image_left_with_table_right.html.erb
|
169
|
+
- lib/generators/glass/install/templates/glass_templates/list.html.erb
|
170
|
+
- lib/generators/glass/install/templates/glass_templates/simple.html.erb
|
171
|
+
- lib/generators/glass/install/templates/glass_templates/table.html.erb
|
172
|
+
- lib/generators/glass/install/templates/glass_templates/two_column.html.erb
|
173
|
+
- lib/generators/glass/install/templates/glass_templates/two_column_with_emphasis_left.html.erb
|
164
174
|
- lib/generators/glass/install/templates/glass_timeline_item_migration.rb
|
165
175
|
- lib/generators/glass/install/templates/google-oauth.yml
|
166
176
|
- lib/generators/glass/install/templates/google_account.rb
|
167
177
|
- lib/generators/glass/install/templates/initializer.rb
|
168
178
|
- lib/generators/glass/install/templates/notifications_controller.rb
|
179
|
+
- lib/generators/glass/model/.DS_Store
|
169
180
|
- lib/generators/glass/model/model_generator.rb
|
170
181
|
- lib/generators/glass/model/templates/model.rb
|
171
|
-
- lib/generators/glass/templates/.DS_Store
|
172
|
-
- lib/generators/glass/templates/templates/image_full.html.erb
|
173
|
-
- lib/generators/glass/templates/templates/image_left_with_section_right.html.erb
|
174
|
-
- lib/generators/glass/templates/templates/image_left_with_table_right.html.erb
|
175
|
-
- lib/generators/glass/templates/templates/list.html.erb
|
176
|
-
- lib/generators/glass/templates/templates/simple.html.erb
|
177
|
-
- lib/generators/glass/templates/templates/table.html.erb
|
178
|
-
- lib/generators/glass/templates/templates/two_column.html.erb
|
179
|
-
- lib/generators/glass/templates/templates/two_column_with_emphasis_left.html.erb
|
180
|
-
- lib/generators/glass/templates/templates_generator.rb
|
181
182
|
- lib/glass-rails.rb
|
182
183
|
- lib/glass.rb
|
183
184
|
- lib/glass/.DS_Store
|
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'generators/glass'
|
2
|
-
require 'rails/generators'
|
3
|
-
require 'rails/generators/migration'
|
4
|
-
|
5
|
-
module Glass
|
6
|
-
module Generators
|
7
|
-
class TemplatesGenerator < Base
|
8
|
-
include Rails::Generators::Migration
|
9
|
-
|
10
|
-
def copy_glass_templates
|
11
|
-
directory("", "app/views/glass")
|
12
|
-
end
|
13
|
-
end
|
14
|
-
private
|
15
|
-
end
|
16
|
-
end
|