orientea 0.1.6 → 0.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7abdc2c244a9b7c8c390c126a99d0ba8eb351b5
|
4
|
+
data.tar.gz: baddfca28ac9292063788201f8c17fd98cc1095a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afaa223c2901cee7651603eefdb8b0dfe239f78b0bee39c1c9df10e55103246b79aaa702776148e960b1964aafccb39f89e25bb402d5ddafbd684689df9e12dc
|
7
|
+
data.tar.gz: 488d9575ccdabd7ac4f5e3467ef2ab53effded2890c3d9a7a83ea6f2da0fd7ea9575fcc36b02114496db7636a5f594addbf1a675b321bb366f1d08110f4fca94
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -1,10 +1,15 @@
|
|
1
1
|
module Orientea
|
2
2
|
class CommandGenerator < Rails::Generators::Base
|
3
3
|
include Rails::Generators::Migration
|
4
|
+
|
4
5
|
source_root File.expand_path('../templates', __FILE__)
|
5
6
|
# desc "rails g orientea:command"
|
6
7
|
def create_migration
|
7
8
|
migration_template 'create_command.rb', 'db/migrate/create_command_table.rb'
|
8
9
|
end
|
10
|
+
|
11
|
+
def self.next_migration_number(dir)
|
12
|
+
ActiveRecord::Migration.next_migration_number(dir.to_i)
|
13
|
+
end
|
9
14
|
end
|
10
15
|
end
|
@@ -1,7 +1,14 @@
|
|
1
|
-
class
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
class CreateCommandTable < ActiveRecord::Migration
|
2
|
+
def up
|
3
|
+
execute "CREATE EXTENSION IF NOT EXISTS hstore"
|
4
|
+
create_table :orientea_commands do |t|
|
5
|
+
t.hstore :data
|
6
|
+
t.boolean :done
|
7
|
+
t.string :type
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def down
|
12
|
+
drop_table :orientea_commands
|
6
13
|
end
|
7
14
|
end
|
data/orientea.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "orientea"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Vincent Zhu"]
|
12
|
-
s.date = "2013-08-
|
12
|
+
s.date = "2013-08-15"
|
13
13
|
s.description = "Command Pattern Implementation for easy use with rails"
|
14
14
|
s.email = "zhu1230@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orientea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vincent Zhu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|