orientea 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6894362d191deb536a5c5333c71642cccf15060
4
- data.tar.gz: f6def4a22744753a662f2408216f95d49eea62fd
3
+ metadata.gz: e7abdc2c244a9b7c8c390c126a99d0ba8eb351b5
4
+ data.tar.gz: baddfca28ac9292063788201f8c17fd98cc1095a
5
5
  SHA512:
6
- metadata.gz: 2580e80f46f92f5c827d7e94378ae43f2a134a12d2bcb704949178ea9c2bef15ab74f232e96f845f4cb95c070af1e8c15e74647f7f98730fca7370f090b51f7d
7
- data.tar.gz: 10edb3f1dc6d965564467bf2c122867bca1b5578c3e34f579504e0956f5a2fd7abc86b766add11ab34920e906cb747e8293df8d60cf3210c7dc3d261509760aa
6
+ metadata.gz: afaa223c2901cee7651603eefdb8b0dfe239f78b0bee39c1c9df10e55103246b79aaa702776148e960b1964aafccb39f89e25bb402d5ddafbd684689df9e12dc
7
+ data.tar.gz: 488d9575ccdabd7ac4f5e3467ef2ab53effded2890c3d9a7a83ea6f2da0fd7ea9575fcc36b02114496db7636a5f594addbf1a675b321bb366f1d08110f4fca94
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
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 CreateOrienteaCommand < ActiveRecord::Migration
2
- create_table :orientea_commands do |t|
3
- t.hstore :data
4
- t.boolean :done
5
- t.string :type
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.1.6"
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-14"
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.1.6
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-14 00:00:00.000000000 Z
11
+ date: 2013-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord