squib 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +29 -26
  3. data/.travis.yml +6 -4
  4. data/.yardopts +6 -0
  5. data/API.md +59 -0
  6. data/Gemfile +2 -2
  7. data/LICENSE.txt +22 -22
  8. data/README.md +92 -55
  9. data/Rakefile +11 -6
  10. data/bin/squib +19 -2
  11. data/lib/squib/api/background.rb +16 -11
  12. data/lib/squib/api/data.rb +52 -29
  13. data/lib/squib/api/image.rb +48 -10
  14. data/lib/squib/api/save.rb +36 -15
  15. data/lib/squib/api/settings.rb +35 -0
  16. data/lib/squib/api/shapes.rb +106 -12
  17. data/lib/squib/api/text.rb +45 -25
  18. data/lib/squib/api/units.rb +17 -0
  19. data/lib/squib/card.rb +36 -27
  20. data/lib/squib/commands/new.rb +40 -0
  21. data/lib/squib/constants.rb +40 -0
  22. data/lib/squib/deck.rb +113 -48
  23. data/lib/squib/graphics/background.rb +12 -10
  24. data/lib/squib/graphics/image.rb +28 -12
  25. data/lib/squib/graphics/save_doc.rb +50 -21
  26. data/lib/squib/graphics/save_images.rb +10 -8
  27. data/lib/squib/graphics/shapes.rb +55 -11
  28. data/lib/squib/graphics/text.rb +107 -27
  29. data/lib/squib/input_helpers.rb +140 -0
  30. data/lib/squib/project_template/.gitignore +3 -0
  31. data/lib/squib/project_template/ABOUT.md +19 -0
  32. data/lib/squib/project_template/Gemfile +3 -0
  33. data/lib/squib/project_template/PNP NOTES.md +4 -0
  34. data/lib/squib/project_template/_output/gitkeep.txt +1 -0
  35. data/lib/squib/project_template/config.yml +2 -0
  36. data/lib/squib/project_template/deck.rb +6 -0
  37. data/lib/squib/project_template/layout.yml +0 -0
  38. data/lib/squib/version.rb +6 -3
  39. data/lib/squib.rb +19 -2
  40. data/samples/_output/gitkeep.txt +0 -0
  41. data/samples/basic.rb +20 -22
  42. data/samples/colors.rb +17 -0
  43. data/samples/custom-config.yml +1 -0
  44. data/samples/custom-layout.yml +34 -0
  45. data/samples/custom_config.rb +6 -0
  46. data/samples/draw_shapes.rb +19 -0
  47. data/samples/excel.rb +19 -16
  48. data/samples/hello_world.rb +7 -0
  49. data/samples/load_images.rb +19 -0
  50. data/samples/pokercard.png +0 -0
  51. data/samples/ranges.rb +47 -0
  52. data/samples/sample.xlsx +0 -0
  53. data/samples/save_pdf.rb +14 -0
  54. data/samples/spanner.svg +91 -0
  55. data/samples/text_options.rb +58 -0
  56. data/samples/tgc_proofs.rb +20 -0
  57. data/samples/units.rb +12 -0
  58. data/samples/use_layout.rb +29 -0
  59. data/spec/api/api_text_spec.rb +37 -0
  60. data/spec/commands/new_spec.rb +48 -0
  61. data/spec/deck_spec.rb +49 -48
  62. data/spec/samples_run_spec.rb +15 -0
  63. data/spec/spec_helper.rb +9 -0
  64. data/squib.gemspec +42 -27
  65. metadata +109 -11
  66. data/samples/_output/watch.html +0 -25
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: squib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Meneely
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-17 00:00:00.000000000 Z
11
+ date: 2014-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cairo
@@ -52,6 +52,34 @@ dependencies:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.13.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: rsvg2
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.2.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 2.2.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: mercenary
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 0.3.4
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 0.3.4
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: bundler
57
85
  requirement: !ruby/object:Gem::Requirement
@@ -94,16 +122,48 @@ dependencies:
94
122
  - - ~>
95
123
  - !ruby/object:Gem::Version
96
124
  version: '3.0'
97
- description:
125
+ - !ruby/object:Gem::Dependency
126
+ name: yard
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: coveralls
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Squib is a Ruby DSL for prototyping card games
98
154
  email:
99
155
  - playconfidencegames@gmail.com
100
156
  executables:
101
157
  - squib
102
158
  extensions: []
103
- extra_rdoc_files: []
159
+ extra_rdoc_files:
160
+ - README.md
161
+ - LICENSE.txt
104
162
  files:
105
163
  - .gitignore
106
164
  - .travis.yml
165
+ - .yardopts
166
+ - API.md
107
167
  - Gemfile
108
168
  - LICENSE.txt
109
169
  - README.md
@@ -114,9 +174,13 @@ files:
114
174
  - lib/squib/api/data.rb
115
175
  - lib/squib/api/image.rb
116
176
  - lib/squib/api/save.rb
177
+ - lib/squib/api/settings.rb
117
178
  - lib/squib/api/shapes.rb
118
179
  - lib/squib/api/text.rb
180
+ - lib/squib/api/units.rb
119
181
  - lib/squib/card.rb
182
+ - lib/squib/commands/new.rb
183
+ - lib/squib/constants.rb
120
184
  - lib/squib/deck.rb
121
185
  - lib/squib/graphics/background.rb
122
186
  - lib/squib/graphics/image.rb
@@ -124,27 +188,56 @@ files:
124
188
  - lib/squib/graphics/save_images.rb
125
189
  - lib/squib/graphics/shapes.rb
126
190
  - lib/squib/graphics/text.rb
191
+ - lib/squib/input_helpers.rb
192
+ - lib/squib/project_template/.gitignore
193
+ - lib/squib/project_template/ABOUT.md
194
+ - lib/squib/project_template/Gemfile
195
+ - lib/squib/project_template/PNP NOTES.md
196
+ - lib/squib/project_template/_output/gitkeep.txt
197
+ - lib/squib/project_template/config.yml
198
+ - lib/squib/project_template/deck.rb
199
+ - lib/squib/project_template/layout.yml
127
200
  - lib/squib/version.rb
128
- - samples/_output/watch.html
201
+ - samples/_output/gitkeep.txt
129
202
  - samples/basic.rb
203
+ - samples/colors.rb
204
+ - samples/custom-config.yml
205
+ - samples/custom-layout.yml
206
+ - samples/custom_config.rb
207
+ - samples/draw_shapes.rb
130
208
  - samples/excel.rb
209
+ - samples/hello_world.rb
210
+ - samples/load_images.rb
211
+ - samples/pokercard.png
212
+ - samples/ranges.rb
131
213
  - samples/sample.xlsx
214
+ - samples/save_pdf.rb
132
215
  - samples/shiny-purse.png
216
+ - samples/spanner.svg
217
+ - samples/text_options.rb
218
+ - samples/tgc_proofs.rb
219
+ - samples/units.rb
220
+ - samples/use_layout.rb
221
+ - spec/api/api_text_spec.rb
222
+ - spec/commands/new_spec.rb
133
223
  - spec/deck_spec.rb
224
+ - spec/samples_run_spec.rb
225
+ - spec/spec_helper.rb
134
226
  - squib.gemspec
135
- homepage: ''
227
+ homepage: https://github.com/andymeneely/squib
136
228
  licenses:
137
229
  - MIT
138
230
  metadata: {}
139
231
  post_install_message:
140
- rdoc_options: []
232
+ rdoc_options:
233
+ - --charset=UTF-8
141
234
  require_paths:
142
235
  - lib
143
236
  required_ruby_version: !ruby/object:Gem::Requirement
144
237
  requirements:
145
238
  - - '>='
146
239
  - !ruby/object:Gem::Version
147
- version: '0'
240
+ version: 2.0.0
148
241
  required_rubygems_version: !ruby/object:Gem::Requirement
149
242
  requirements:
150
243
  - - '>='
@@ -152,9 +245,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
245
  version: '0'
153
246
  requirements: []
154
247
  rubyforge_project:
155
- rubygems_version: 2.2.2
248
+ rubygems_version: 2.0.14
156
249
  signing_key:
157
- specification_version: 4
158
- summary: A Ruby API for prototyping card and other tabletop games
250
+ specification_version: 2
251
+ summary: A Ruby DSL for prototyping card games
159
252
  test_files:
253
+ - spec/api/api_text_spec.rb
254
+ - spec/commands/new_spec.rb
160
255
  - spec/deck_spec.rb
256
+ - spec/samples_run_spec.rb
257
+ - spec/spec_helper.rb
258
+ has_rdoc:
@@ -1,25 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <style>
5
- img{
6
- border: 1px solid black;
7
- }
8
- </style>
9
- <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
10
- <script>
11
- setInterval(function () {
12
- $("#img0").attr("src", "sample_excel_0.png?"+new Date().getTime());
13
- $("#img1").attr("src", "sample_excel_1.png?"+new Date().getTime());
14
-
15
- }, 1000);
16
- </script>
17
- </head>
18
-
19
- <body>
20
- <h1>Cards</h1>
21
- <img id="img0" width=300 src="sample_excel_0.png"/>
22
- <img id="img1" width=300 src="sample_excel_1.png"/>
23
- </body>
24
-
25
- </html>