jay_z 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,13 @@
1
- JayZ [![Stillmaintained](http://stillmaintained.com/unders/jay_z.png)](http://stillmaintained.com/unders/jay_z)
1
+ JayZ [![Stillmaintained](http://stillmaintained.com/unders/jay_z.png)](http://stillmaintained.com/unders/jay_z) [![Build Status](http://travis-ci.org/unders/jay_z.png)](http://travis-ci.org/unders/jay_z)
2
2
  ====
3
3
 
4
- * http://github.com/unders/jay_z
5
- * [![Build Status](http://travis-ci.org/unders/jay_z.png)](http://travis-ci.org/unders/jay_z)
6
- * [GemTesters](http://test.rubygems.org/gems/jay_z)
4
+
5
+ Where
6
+ -----
7
+ * [JayZ @ Github](http://github.com/unders/jay_z)
8
+ * [JayZ @ GemTesters](http://test.rubygems.org/gems/jay_z)
7
9
  * [JayZ @ Rubygems](http://rubygems.org/gems/jay_z)
10
+ * [JayZ @ Rubydoc](http://rubydoc.info/gems/jay_z)
8
11
 
9
12
  Description:
10
13
  -----------
@@ -18,17 +21,20 @@ Compatibility
18
21
  Ruby version 1.9.2 and 1.9.3 and Rails version 3.1
19
22
 
20
23
  [GemTesters](http://test.rubygems.org/gems/jay_z) has
21
- more information on which platform the Gem is tested.
24
+ more information on which platforms the Gem is tested.
22
25
 
23
- Install
24
- -------
26
+ Installation
27
+ ------------
25
28
 
26
29
  Install as a gem:
27
30
 
28
31
  gem install jay_z
29
32
 
30
- Rails and ActiveRecord
31
- ----------------------
33
+ Examples
34
+ -------
35
+
36
+ **Rails, ActiveRecord and minitest**
37
+
32
38
 
33
39
  1. Update Gemfile
34
40
 
@@ -57,6 +63,31 @@ Rails and ActiveRecord
57
63
  end
58
64
  end
59
65
 
66
+ 5. Modify the generated blueprint according to your preferences
67
+
68
+ class Comment < Blueprint(ActiveRecord)
69
+ default do
70
+ post { Post.make.save }
71
+ body { "MyText" }
72
+ end
73
+ end
74
+
75
+ 6. Write tests in test/comment_test.rb
76
+
77
+ require "minitest_helper"
78
+
79
+ class CommentTest < MiniTest::Rails::Model
80
+ before do
81
+ @comment = Comment.make.new
82
+ end
83
+
84
+ it "must be valid" do
85
+ @comment.valid?.must_equal true
86
+ end
87
+ end
88
+
89
+
90
+
60
91
  How to test the installed Gem
61
92
  -------------------------
62
93
 
data/lib/jay_z/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module JayZ
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jay_z
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-25 00:00:00.000000000 Z
12
+ date: 2011-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
- requirement: &70205766337780 !ruby/object:Gem::Requirement
16
+ requirement: &70259315039420 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70205766337780
24
+ version_requirements: *70259315039420
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: railties
27
- requirement: &70205766335780 !ruby/object:Gem::Requirement
27
+ requirement: &70259314963480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.1.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70205766335780
35
+ version_requirements: *70259314963480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sqlite3
38
- requirement: &70205766334340 !ruby/object:Gem::Requirement
38
+ requirement: &70259314958780 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 1.3.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70205766334340
46
+ version_requirements: *70259314958780
47
47
  description: A model factory. Say no to fixtures.
48
48
  email:
49
49
  - anders.tornqvist@gmail.com
@@ -54,6 +54,7 @@ files:
54
54
  - .gemtest
55
55
  - .travis.yml
56
56
  - Gemfile
57
+ - README.md
57
58
  - Rakefile
58
59
  - jay_z.gemspec
59
60
  - lib/generators/jay_z/install/install_generator.rb
@@ -66,7 +67,6 @@ files:
66
67
  - lib/jay_z/railtie.rb
67
68
  - lib/jay_z/serial_number.rb
68
69
  - lib/jay_z/version.rb
69
- - readme.md
70
70
  - spec/jay_z/blueprint_spec.rb
71
71
  - spec/jay_z/ghost_spec.rb
72
72
  - spec/jay_z/rails_spec.rb
@@ -102,3 +102,4 @@ test_files:
102
102
  - spec/jay_z/rails_spec.rb
103
103
  - spec/jay_z/serial_number_spec.rb
104
104
  - spec/jay_z_spec.rb
105
+ has_rdoc: