orientea 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +33 -1
  3. data/VERSION +1 -1
  4. data/orientea.gemspec +86 -0
  5. metadata +2 -3
  6. data/README.rdoc +0 -27
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7484f4d726dde987d88c0a184178b1a7930bc20a
4
- data.tar.gz: 002bfccb56b3144f14067f18db59277bc79dc38b
3
+ metadata.gz: c2ea34a18705679e0d4e2500397f3026c54ebbf6
4
+ data.tar.gz: 57d9957dd68f2da1614d594494b0b6dda326ce2e
5
5
  SHA512:
6
- metadata.gz: 14c837bda49e91409d2ed3243467da198cca945e334ffdc4b8c8308c63fbc4e8c23f50a623ed71e87a35252d6dd03139c2234d9fdb961a3e1ea928a406e99bde
7
- data.tar.gz: 4be3d9c0664aa805348b0de0432ff7e127ac472b418172aaa2858bdc7a9ce45f4338b117ee545d729421dd4f8defb3dabc2ce1569b455a3dffab8b416b901c6d
6
+ metadata.gz: 8abe4ff817513dcdc144015e30748afdc2878f4aa421476d98cd2caf1d06a2edc2a0fd723f93286d0748aa5bf75ac95f6bda6f1c34ced161f531a4079aa6cf6b
7
+ data.tar.gz: 868da415df5610321d5f30e01ce2bec0a3292abaf9658a45ae9f8c80bc915a263ad4cfb9369c4e90b135fc339b7048a6fed84fd00265c56f7a9c462669b034b1
data/README.md CHANGED
@@ -1,4 +1,36 @@
1
- orientea
1
+ orientea: command pattern for active record.
2
2
  ========
3
3
 
4
+ #### This is one command pattern implementation for ruby. Designed to use with rails (ActiveRecord).
5
+ You can store the command object , perform it by action method , or undo it by undo method. ########
6
+
7
+ Note: this gem use postgresql with hstore extension.
8
+
9
+ ```ruby
10
+ @record = Record.new
11
+ reate_command = Orientea::CreatingCommand.build(@record) # would build and save the command
12
+ record.name = "changed name"
13
+ hange_command = Orientea::ChangingCommand.build(@record)
14
+ hange_command.action # would apply the changes
15
+ hange_command.undo # would discard the changes
16
+ ```
17
+
18
+
19
+
20
+ == Contributing to orientea
21
+
22
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
23
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
24
+ * Fork the project.
25
+ * Start a feature/bugfix branch.
26
+ * Commit and push until you are happy with your contribution.
27
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
28
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
29
+
30
+ == Copyright
31
+
32
+ Copyright (c) 2013 Vincent Zhu. See LICENSE.txt for
33
+ further details.
34
+
35
+
4
36
  One Command Pattern Implementation For Ruby with ActiveRecord
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/orientea.gemspec ADDED
@@ -0,0 +1,86 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "orientea"
8
+ s.version = "0.1.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Vincent Zhu"]
12
+ s.date = "2013-08-14"
13
+ s.description = "Command Pattern Implementation for easy use with rails"
14
+ s.email = "zhu1230@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".rspec",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE.txt",
25
+ "README.md",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "lib/.DS_Store",
29
+ "lib/orientea.rb",
30
+ "lib/orientea/.DS_Store",
31
+ "lib/orientea/changing_command.rb",
32
+ "lib/orientea/command.rb",
33
+ "lib/orientea/creating_command.rb",
34
+ "lib/orientea/generators/command_generator.rb",
35
+ "lib/orientea/templates/create_command.rb",
36
+ "orientea.gemspec",
37
+ "spec/changing_command_spec.rb",
38
+ "spec/creating_command_spec.rb",
39
+ "spec/shared_setup.rb",
40
+ "spec/spec_helper.rb",
41
+ "test/helper.rb",
42
+ "test/test_orientea.rb"
43
+ ]
44
+ s.homepage = "http://github.com/vincent/orientea"
45
+ s.licenses = ["MIT"]
46
+ s.require_paths = ["lib"]
47
+ s.rubygems_version = "2.0.3"
48
+ s.summary = "Command Pattern Implementation for easy use with rails"
49
+
50
+ if s.respond_to? :specification_version then
51
+ s.specification_version = 4
52
+
53
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
+ s.add_runtime_dependency(%q<activerecord>, [">= 0"])
55
+ s.add_runtime_dependency(%q<pg>, [">= 0"])
56
+ s.add_development_dependency(%q<awesome_print>, [">= 0"])
57
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
58
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
59
+ s.add_development_dependency(%q<bundler>, [">= 1.3.5"])
60
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
61
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
62
+ s.add_development_dependency(%q<rspec>, [">= 0"])
63
+ else
64
+ s.add_dependency(%q<activerecord>, [">= 0"])
65
+ s.add_dependency(%q<pg>, [">= 0"])
66
+ s.add_dependency(%q<awesome_print>, [">= 0"])
67
+ s.add_dependency(%q<shoulda>, [">= 0"])
68
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
69
+ s.add_dependency(%q<bundler>, [">= 1.3.5"])
70
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
71
+ s.add_dependency(%q<simplecov>, [">= 0"])
72
+ s.add_dependency(%q<rspec>, [">= 0"])
73
+ end
74
+ else
75
+ s.add_dependency(%q<activerecord>, [">= 0"])
76
+ s.add_dependency(%q<pg>, [">= 0"])
77
+ s.add_dependency(%q<awesome_print>, [">= 0"])
78
+ s.add_dependency(%q<shoulda>, [">= 0"])
79
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
80
+ s.add_dependency(%q<bundler>, [">= 1.3.5"])
81
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
82
+ s.add_dependency(%q<simplecov>, [">= 0"])
83
+ s.add_dependency(%q<rspec>, [">= 0"])
84
+ end
85
+ end
86
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orientea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Zhu
@@ -143,7 +143,6 @@ extensions: []
143
143
  extra_rdoc_files:
144
144
  - LICENSE.txt
145
145
  - README.md
146
- - README.rdoc
147
146
  files:
148
147
  - .document
149
148
  - .rspec
@@ -151,7 +150,6 @@ files:
151
150
  - Gemfile.lock
152
151
  - LICENSE.txt
153
152
  - README.md
154
- - README.rdoc
155
153
  - Rakefile
156
154
  - VERSION
157
155
  - lib/.DS_Store
@@ -162,6 +160,7 @@ files:
162
160
  - lib/orientea/creating_command.rb
163
161
  - lib/orientea/generators/command_generator.rb
164
162
  - lib/orientea/templates/create_command.rb
163
+ - orientea.gemspec
165
164
  - spec/changing_command_spec.rb
166
165
  - spec/creating_command_spec.rb
167
166
  - spec/shared_setup.rb
data/README.rdoc DELETED
@@ -1,27 +0,0 @@
1
- = Orientea, one command pattern for active record.
2
-
3
- This is one command pattern implementation for ruby. Designed to use with rails (ActiveRecord).
4
- You can store the command object , perform it by action method , or undo it by undo method.
5
- Note: this gem use postgresql with hstore extension.
6
-
7
- @record = Record.new
8
- create_command = Orientea::CreatingCommand.build(@record) // would build and save the command
9
- @record.name = "changed name"
10
- change_command = Orientea::ChangingCommand.build(@record)
11
- change_command.action // would apply the changes
12
- change_command.undo // would discard the changes
13
- == Contributing to orientea
14
-
15
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
16
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
17
- * Fork the project.
18
- * Start a feature/bugfix branch.
19
- * Commit and push until you are happy with your contribution.
20
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
21
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
22
-
23
- == Copyright
24
-
25
- Copyright (c) 2013 Vincent Zhu. See LICENSE.txt for
26
- further details.
27
-