ardm-migrations 1.2.0 → 1.2.1

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: 92f93f472dab02d31afe97f1eeb7a8c678bf93dd
4
- data.tar.gz: ef8affab3f303cb35f70529616936114d0d0aa54
3
+ metadata.gz: 34885d81397d6d6c250c93a2a7c7fc3d2476bdb2
4
+ data.tar.gz: a4331b8c984cac8a7cca893bd7c8152f52b47cb6
5
5
  SHA512:
6
- metadata.gz: 49bc21cc18de995796d5755f80c305a0daf4b7ab69610e3d7561e04c07c699bc9ca2686b61845326978161249f56cd3da45d5caa798a97201dd095283aff0333
7
- data.tar.gz: 6feded039b1f6a3afd3868ab600b240d46ca2d6dab1a8184c4e13d55de1ba905a1b9563ad61b242c35810351ba5a6d8357f729dbb44afdbbca60b4c7c72f05fd
6
+ metadata.gz: dcc5f0fad6fcd309dfbf4784b9a234b314fe7cea46ebb3d68dedd1dc1eaeecaf7abaa5b99bde7cd51d14e9d64a027c15d5f60b0657e9958c3417497214a00ec0
7
+ data.tar.gz: 3c06cbde474c3e5a445f04174f6fa10cc465e9c8635879f491e53ddf88ab9e61292013a0bb286b6d377c49a72b12bc98b85f0aad4a3caa770b495fe2211f6772
@@ -1,5 +1,17 @@
1
1
  language: ruby
2
2
  sudo: false
3
+ services:
4
+ - mysql
5
+ before_script:
6
+ - "bundle exec rake db:create"
7
+ before_install:
8
+ - gem install bundler
9
+ script: "bundle exec rake spec"
10
+ env:
11
+ - "ADAPTER=in_memory"
12
+ # - "ADAPTER=yaml"
13
+ # - "ADAPTER=sqlite"
14
+ - "ADAPTER=mysql DM_DB_USER=root DM_DB_PASSWORD=''"
3
15
  rvm:
4
16
  - 1.9.3
5
17
  - 2.0.0
@@ -7,5 +19,4 @@ rvm:
7
19
  - 2.2.0
8
20
  matrix:
9
21
  allow_failures:
10
- - rvm: 2.1.5
11
22
  - rvm: 2.2.0
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ gemspec
7
7
  SOURCE = ENV.fetch('SOURCE', :git).to_sym
8
8
  REPO_POSTFIX = SOURCE == :path ? '' : '.git'
9
9
  DATAMAPPER = SOURCE == :path ? Pathname(__FILE__).dirname.parent : 'http://github.com/ar-dm'
10
- DM_VERSION = '~> 1.2.0'
10
+ DM_VERSION = '~> 1.2'
11
11
  DO_VERSION = '~> 0.10.6'
12
12
  DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
13
13
  CURRENT_BRANCH = ENV.fetch('GIT_BRANCH', 'master')
@@ -0,0 +1,10 @@
1
+ # ardm-migrations
2
+
3
+ A fork of [`dm-migrations`](https://github.com/datamapper/dm-migrations).
4
+
5
+ ## Install
6
+
7
+ See [ardm-core](https://github.com/ar-dm/ardm-core) for more information.
8
+
9
+ Unless they are specific to this gem, please ask general `ardm-` questions
10
+ and open issues on `ardm-core`.
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
 
14
14
  gem.files = `git ls-files`.split("\n")
15
15
  gem.test_files = `git ls-files -- {spec}/*`.split("\n")
16
- gem.extra_rdoc_files = %w[LICENSE README.rdoc]
16
+ gem.extra_rdoc_files = %w[LICENSE README.md]
17
17
 
18
18
  gem.homepage = "http://github.com/martinemde/ardm-migrations"
19
19
 
@@ -226,8 +226,7 @@ module DataMapper
226
226
 
227
227
  # @api private
228
228
  def property_schema_statement(connection, schema)
229
- statement = quote_name(schema[:name])
230
- statement << " #{schema[:primitive]}"
229
+ statement = "#{quote_name(schema[:name])} #{schema[:primitive]}"
231
230
 
232
231
  length = schema[:length]
233
232
 
@@ -85,8 +85,7 @@ module DataMapper
85
85
  # @api private
86
86
  def property_schema_statement(connection, schema)
87
87
  if supports_serial? && schema[:serial]
88
- statement = quote_name(schema[:name])
89
- statement << " #{schema[:primitive]}"
88
+ statement = "#{quote_name(schema[:name])} #{schema[:primitive]}"
90
89
 
91
90
  length = schema[:length]
92
91
 
@@ -1,5 +1,5 @@
1
1
  module DataMapper
2
2
  module Migrations
3
- VERSION = '1.2.0'
3
+ VERSION = '1.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ardm-migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Emde
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-29 00:00:00.000000000 Z
12
+ date: 2015-02-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ardm-core
@@ -61,13 +61,13 @@ executables: []
61
61
  extensions: []
62
62
  extra_rdoc_files:
63
63
  - LICENSE
64
- - README.rdoc
64
+ - README.md
65
65
  files:
66
66
  - ".gitignore"
67
67
  - ".travis.yml"
68
68
  - Gemfile
69
69
  - LICENSE
70
- - README.rdoc
70
+ - README.md
71
71
  - Rakefile
72
72
  - ardm-migrations.gemspec
73
73
  - db/migrations/1_create_people_table.rb
@@ -1,39 +0,0 @@
1
- = dm-migrations
2
-
3
- DataMapper plugin for writing and specing migrations.
4
-
5
- == Example
6
-
7
- require 'dm-migrations/migration_runner'
8
-
9
- DataMapper.setup(:default, "sqlite3::memory")
10
-
11
- DataMapper::Logger.new(STDOUT, :debug)
12
- DataMapper.logger.debug( "Starting Migration" )
13
-
14
- migration 1, :create_people_table do
15
- up do
16
- create_table :people do
17
- column :id, Integer, :serial => true
18
- column :desc, String
19
- end
20
- end
21
-
22
- down do
23
- drop_table :people
24
- end
25
- end
26
-
27
- migration 2, :make_desc_text do
28
- up do
29
- modify_table :people do
30
- # You currently have to use the underlying DB type here, rather than
31
- # a DataMapper type
32
- change_column :desc, 'text'
33
- end
34
- end
35
- end
36
-
37
- migrate_up!
38
-
39
- For more, see the examples directory.