zapata 0.0.3 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a623cb9783f185bae4d4111b99219ce93a83539d
4
- data.tar.gz: a0222512c8e1ca6c334641245a0bf82cab4adca5
3
+ metadata.gz: 28a4656491b89dc024bec65813d090320aae56a5
4
+ data.tar.gz: ddb5269b6285aedac9388c5a9dfa12b031358b1b
5
5
  SHA512:
6
- metadata.gz: 08172f430be1bdad603cb4200e8e8443e459b174e2b4b2958d514c4bca876837994264cbf11329a8e2b595f482c24621f94da4833c212c1da2c569c748db5504
7
- data.tar.gz: 4f943051fd300cffcef499f29bcfd7936186dde850b5e130132f5418c06275c4ba8dd9e333b24fbfc0c1d96242aa991126c79dd504905e8e4f72c51439bfd0da
6
+ metadata.gz: d925ab809d2def68a2d61093f19e45dc7c25b4debb30c37267bfd36c3a62111d7c691babc8fb8471ad867fa6afafe4d1b7fbeaf935fdb67682868ec143dc28bc
7
+ data.tar.gz: 70c33a728c13940514633960680cb7b7dde373b649d232af555735f1cbffdf29a665ac037df0ae15ba0c56f48276759af3709c65a22b0679ca4a0fc06a74d964
data/.travis.yml CHANGED
@@ -1,6 +1,19 @@
1
1
  language: ruby
2
- rvm:
3
- - 2.1.2
4
- - 2.0.0
2
+
3
+ bundler_args: --without development
4
+
5
5
  script: bundle exec rspec --pattern "spec/*_spec.rb"
6
6
  gemfile: spec/support/rails_test_app/Gemfile
7
+
8
+ rvm:
9
+ - 2.0.0
10
+ - 2.1.0
11
+ - ruby-head
12
+ - jruby-head
13
+ - rbx
14
+
15
+ matrix:
16
+ allow_failures:
17
+ - rvm: ruby-head
18
+ - rvm: jruby-head
19
+ - rvm: rbx
data/README.md CHANGED
@@ -1,12 +1,14 @@
1
- [![Code Climate](https://codeclimate.com/github/Nedomas/zapata/badges/gpa.svg)](https://codeclimate.com/github/Nedomas/zapata)
2
- [![Gem Version](https://badge.fury.io/rb/zapata.svg)](http://badge.fury.io/rb/zapata)
3
- [![Build Status](https://travis-ci.org/Nedomas/zapata.svg?branch=master)](https://travis-ci.org/Nedomas/zapata)
4
-
5
1
  # Zapata
6
2
 
7
3
  Who has time to write tests? This is a revolutional tool to make them write
8
4
  themselves.
9
5
 
6
+ [![Gem Version](http://img.shields.io/gem/v/zapata.svg?style=flat)][rubygems]
7
+ [![Build Status](http://img.shields.io/travis/Nedomas/zapata.svg?style=flat)][travis]
8
+ [![Dependency Status](http://img.shields.io/gemnasium/Nedomas/zapata.svg?style=flat)][gemnasium]
9
+ [![Coverage Status](http://img.shields.io/coveralls/Nedomas/zapata/master.svg?style=flat)][coveralls]
10
+ [![Code Climate](http://img.shields.io/codeclimate/github/Nedomas/zapata.svg?style=flat)][codeclimate]
11
+
10
12
  ![Emiliano Zapata](https://cloud.githubusercontent.com/assets/1877286/3753719/af3bfec2-1814-11e4-8790-242c2b26a8e9.jpg)
11
13
 
12
14
  # What is your problem?
@@ -120,6 +122,16 @@ __To be more specific:__
120
122
  For more things it can currently do check
121
123
  https://github.com/Nedomas/zapata/tree/master/spec
122
124
 
125
+ ## Workflow with Zapata
126
+
127
+ Say you are writing some new feature on your existing project.
128
+ Before writing that, you probably want to test out the current functionality.
129
+ But who has time for that?
130
+
131
+ You let *Zapata* create that quick spec for you.
132
+ Think of it as a *current functionality lock*.
133
+ Write more code and when you're happy with the result - lock it up again.
134
+
123
135
  ## Requirements
124
136
 
125
137
  - Ruby 2.0+
@@ -169,11 +181,29 @@ cd zapata
169
181
  bundle exec rake install
170
182
  ```
171
183
 
172
- For specs, run:
184
+ For specs:
185
+
186
+ 1. ``cd spec/support/rails_test_app && bundle update``
187
+ 2. ``cd ../../..``
188
+ 3. Run:
173
189
  ```sh
174
- bundle exec rspec --patern "spec/*_spec.rb"
190
+ bundle exec rspec --pattern "spec/*_spec.rb"
175
191
  ```
176
192
 
193
+ ## Awareness
194
+
195
+ I am well aware that this is featured in [Ruby Weekly 223](http://rubyweekly.com/issues/223).
196
+ On that note I'd like to thank everybody who helped it shine through.
197
+
198
+ Special thanks to my comrade @jpalumickas, with whom we share a vision of a better world.
199
+
177
200
  ## Copyright
178
201
  Copyright (c) 2014 Domas.
179
202
  See [LICENSE](LICENSE) for details.
203
+
204
+ [rubygems]: https://rubygems.org/gems/zapata
205
+ [travis]: http://travis-ci.org/Nedomas/zapata
206
+ [gemnasium]: https://gemnasium.com/Nedomas/zapata
207
+ [coveralls]: https://coveralls.io/r/Nedomas/zapata
208
+ [codeclimate]: https://codeclimate.com/github/Nedomas/zapata
209
+
@@ -33,8 +33,7 @@ module Zapata
33
33
  ConstSend.new(raw_receiver, node.name, node.args).to_raw
34
34
  else
35
35
  raw = Predictor::Value.new(node.name, self).choose.to_raw
36
- missing_name = raw.type == :super ? Unparser.unparse(code) : node.name
37
- Missing.new(missing_name).to_raw
36
+ return_with_missing_as_super(raw, node.name)
38
37
  end
39
38
  end
40
39
  end
@@ -1,3 +1,3 @@
1
1
  module Zapata
2
- VERSION = '0.0.3'
2
+ VERSION = '0.1.0'
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,7 @@
1
1
  require 'zapata'
2
+ require 'coveralls'
3
+
4
+ Coveralls.wear!
2
5
  # This file was generated by the `rspec --init` command. Conventionally, all
3
6
  # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
4
7
  # The generated `.rspec` file contains `--require spec_helper` which will cause this
@@ -27,10 +27,14 @@ group :development, :test do
27
27
  gem 'rspec-rails'
28
28
  end
29
29
 
30
+ group :test do
31
+ gem 'coveralls', require: false
32
+ end
33
+
30
34
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
31
35
  gem 'spring', group: :development
32
36
 
33
- gem 'zapata'
37
+ gem 'zapata', path: File.expand_path('../../../..', __FILE__)
34
38
 
35
39
  # Use ActiveModel has_secure_password
36
40
  # gem 'bcrypt', '~> 3.1.7'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zapata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Domas Bitvinskas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-17 00:00:00.000000000 Z
11
+ date: 2014-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -270,7 +270,6 @@ files:
270
270
  - spec/support/rails_test_app/.gitignore
271
271
  - spec/support/rails_test_app/.rspec
272
272
  - spec/support/rails_test_app/Gemfile
273
- - spec/support/rails_test_app/Gemfile.lock
274
273
  - spec/support/rails_test_app/README.md
275
274
  - spec/support/rails_test_app/Rakefile
276
275
  - spec/support/rails_test_app/app/assets/images/.keep
@@ -347,7 +346,6 @@ files:
347
346
  - spec/support/rails_test_app/test/test_helper.rb
348
347
  - spec/support/rails_test_app/vendor/assets/javascripts/.keep
349
348
  - spec/support/rails_test_app/vendor/assets/stylesheets/.keep
350
- - zapata-0.0.1.gem
351
349
  - zapata.gemspec
352
350
  homepage: https://github.com/Nedomas/zapata
353
351
  licenses:
@@ -384,7 +382,6 @@ test_files:
384
382
  - spec/support/rails_test_app/.gitignore
385
383
  - spec/support/rails_test_app/.rspec
386
384
  - spec/support/rails_test_app/Gemfile
387
- - spec/support/rails_test_app/Gemfile.lock
388
385
  - spec/support/rails_test_app/README.md
389
386
  - spec/support/rails_test_app/Rakefile
390
387
  - spec/support/rails_test_app/app/assets/images/.keep
@@ -461,4 +458,3 @@ test_files:
461
458
  - spec/support/rails_test_app/test/test_helper.rb
462
459
  - spec/support/rails_test_app/vendor/assets/javascripts/.keep
463
460
  - spec/support/rails_test_app/vendor/assets/stylesheets/.keep
464
- has_rdoc:
@@ -1,203 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- abstract_type (0.0.7)
5
- actionmailer (4.1.1)
6
- actionpack (= 4.1.1)
7
- actionview (= 4.1.1)
8
- mail (~> 2.5.4)
9
- actionpack (4.1.1)
10
- actionview (= 4.1.1)
11
- activesupport (= 4.1.1)
12
- rack (~> 1.5.2)
13
- rack-test (~> 0.6.2)
14
- actionview (4.1.1)
15
- activesupport (= 4.1.1)
16
- builder (~> 3.1)
17
- erubis (~> 2.7.0)
18
- activemodel (4.1.1)
19
- activesupport (= 4.1.1)
20
- builder (~> 3.1)
21
- activerecord (4.1.1)
22
- activemodel (= 4.1.1)
23
- activesupport (= 4.1.1)
24
- arel (~> 5.0.0)
25
- activesupport (4.1.1)
26
- i18n (~> 0.6, >= 0.6.9)
27
- json (~> 1.7, >= 1.7.7)
28
- minitest (~> 5.1)
29
- thread_safe (~> 0.1)
30
- tzinfo (~> 1.1)
31
- adamantium (0.2.0)
32
- ice_nine (~> 0.11.0)
33
- memoizable (~> 0.4.0)
34
- andand (1.3.3)
35
- arel (5.0.1.20140414130214)
36
- ast (2.0.0)
37
- binding_of_caller (0.7.2)
38
- debug_inspector (>= 0.0.1)
39
- builder (3.2.2)
40
- coderay (1.1.0)
41
- coffee-rails (4.0.1)
42
- coffee-script (>= 2.2.0)
43
- railties (>= 4.0.0, < 5.0)
44
- coffee-script (2.3.0)
45
- coffee-script-source
46
- execjs
47
- coffee-script-source (1.7.1)
48
- concord (0.1.5)
49
- adamantium (~> 0.2.0)
50
- equalizer (~> 0.0.9)
51
- debug_inspector (0.0.2)
52
- diff-lcs (1.2.5)
53
- equalizer (0.0.9)
54
- erubis (2.7.0)
55
- execjs (2.2.1)
56
- ffi (1.9.3)
57
- file-temp (1.2.1)
58
- ffi (>= 1.0.0)
59
- hike (1.2.3)
60
- i18n (0.6.11)
61
- ice_nine (0.11.0)
62
- jbuilder (2.1.3)
63
- activesupport (>= 3.0.0, < 5)
64
- multi_json (~> 1.2)
65
- jquery-rails (3.1.1)
66
- railties (>= 3.0, < 5.0)
67
- thor (>= 0.14, < 2.0)
68
- json (1.8.1)
69
- mail (2.5.4)
70
- mime-types (~> 1.16)
71
- treetop (~> 1.4.8)
72
- memoist (0.9.3)
73
- memoizable (0.4.2)
74
- thread_safe (~> 0.3, >= 0.3.1)
75
- method_source (0.8.2)
76
- mime-types (1.25.1)
77
- minitest (5.4.0)
78
- multi_json (1.10.1)
79
- parser (2.1.9)
80
- ast (>= 1.1, < 3.0)
81
- slop (~> 3.4, >= 3.4.5)
82
- polyglot (0.3.5)
83
- procto (0.0.2)
84
- pry (0.10.0)
85
- coderay (~> 1.1.0)
86
- method_source (~> 0.8.1)
87
- slop (~> 3.4)
88
- pry-stack_explorer (0.4.9.1)
89
- binding_of_caller (>= 0.7)
90
- pry (>= 0.9.11)
91
- rack (1.5.2)
92
- rack-test (0.6.2)
93
- rack (>= 1.0)
94
- rails (4.1.1)
95
- actionmailer (= 4.1.1)
96
- actionpack (= 4.1.1)
97
- actionview (= 4.1.1)
98
- activemodel (= 4.1.1)
99
- activerecord (= 4.1.1)
100
- activesupport (= 4.1.1)
101
- bundler (>= 1.3.0, < 2.0)
102
- railties (= 4.1.1)
103
- sprockets-rails (~> 2.0)
104
- railties (4.1.1)
105
- actionpack (= 4.1.1)
106
- activesupport (= 4.1.1)
107
- rake (>= 0.8.7)
108
- thor (>= 0.18.1, < 2.0)
109
- rake (10.3.2)
110
- rdoc (4.1.1)
111
- json (~> 1.4)
112
- require_all (1.3.2)
113
- rspec (3.0.0)
114
- rspec-core (~> 3.0.0)
115
- rspec-expectations (~> 3.0.0)
116
- rspec-mocks (~> 3.0.0)
117
- rspec-core (3.0.3)
118
- rspec-support (~> 3.0.0)
119
- rspec-expectations (3.0.3)
120
- diff-lcs (>= 1.2.0, < 2.0)
121
- rspec-support (~> 3.0.0)
122
- rspec-mocks (3.0.3)
123
- rspec-support (~> 3.0.0)
124
- rspec-rails (3.0.2)
125
- actionpack (>= 3.0)
126
- activesupport (>= 3.0)
127
- railties (>= 3.0)
128
- rspec-core (~> 3.0.0)
129
- rspec-expectations (~> 3.0.0)
130
- rspec-mocks (~> 3.0.0)
131
- rspec-support (~> 3.0.0)
132
- rspec-support (3.0.3)
133
- sass (3.2.19)
134
- sass-rails (4.0.3)
135
- railties (>= 4.0.0, < 5.0)
136
- sass (~> 3.2.0)
137
- sprockets (~> 2.8, <= 2.11.0)
138
- sprockets-rails (~> 2.0)
139
- sdoc (0.4.1)
140
- json (~> 1.7, >= 1.7.7)
141
- rdoc (~> 4.0)
142
- slop (3.6.0)
143
- spring (1.1.3)
144
- sprockets (2.11.0)
145
- hike (~> 1.2)
146
- multi_json (~> 1.0)
147
- rack (~> 1.0)
148
- tilt (~> 1.1, != 1.3.0)
149
- sprockets-rails (2.1.3)
150
- actionpack (>= 3.0)
151
- activesupport (>= 3.0)
152
- sprockets (~> 2.8)
153
- sqlite3 (1.3.9)
154
- thor (0.19.1)
155
- thread_safe (0.3.4)
156
- tilt (1.4.1)
157
- treetop (1.4.15)
158
- polyglot
159
- polyglot (>= 0.3.1)
160
- turbolinks (2.2.2)
161
- coffee-rails
162
- tzinfo (1.2.2)
163
- thread_safe (~> 0.1)
164
- uglifier (2.5.3)
165
- execjs (>= 0.3.0)
166
- json (>= 1.8.0)
167
- unparser (0.1.14)
168
- abstract_type (~> 0.0.7)
169
- adamantium (~> 0.2.0)
170
- concord (~> 0.1.5)
171
- equalizer (~> 0.0.9)
172
- parser (~> 2.1)
173
- procto (~> 0.0.2)
174
- zapata (0.0.2)
175
- andand (~> 1.3)
176
- file-temp (~> 1.2)
177
- memoist
178
- parser (~> 2.1)
179
- pry (~> 0.9)
180
- pry-stack_explorer (~> 0.4)
181
- rails (>= 3.0.0)
182
- require_all (~> 1.3)
183
- rspec
184
- rspec-rails
185
- slop (~> 3.4)
186
- unparser (~> 0.1)
187
-
188
- PLATFORMS
189
- ruby
190
-
191
- DEPENDENCIES
192
- coffee-rails (~> 4.0.0)
193
- jbuilder (~> 2.0)
194
- jquery-rails
195
- rails (= 4.1.1)
196
- rspec-rails
197
- sass-rails (~> 4.0.3)
198
- sdoc (~> 0.4.0)
199
- spring
200
- sqlite3
201
- turbolinks
202
- uglifier (>= 1.3.0)
203
- zapata
data/zapata-0.0.1.gem DELETED
Binary file