simple_migrations 0.1.8 → 1.0.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
- SHA1:
3
- metadata.gz: 425bc42938008e9e02c6f8d8247fa6b1cdc5abf5
4
- data.tar.gz: cfc0317e65dcfd2da746c30b38c07225cdc370b9
2
+ SHA256:
3
+ metadata.gz: 077c6fe93e6f7eb80962d3ea76c93b4ae00502b655eb0842bb9ac376488e0d16
4
+ data.tar.gz: 483aca3d2fb5aae817d81b7d6860da6158717a7c2a6b4b90917c81c4d06dbecd
5
5
  SHA512:
6
- metadata.gz: 3dfde3c94a118b3316285b4df354a4d35ecee077e0fc44025076e8ee80c7feb43cfbdc25429d56a4323bcba436e783355be1c4faac79a322e075f708b7ce54a4
7
- data.tar.gz: 0ff108d7f2df7e2d71f3c0204a7cb1b34621ee3373ae934289c08ee90b5b2e44b3a4686804510c3116c37cb64e0311e24be02857a6bc503425edf690629449d8
6
+ metadata.gz: 801a8e2a4acaec77388ecb4221481438cf2eb26a68d2b8991798b54760334bd396866544394d5c8626e7d77b476bb8578e3075cd00cb01547248234ef6c92820
7
+ data.tar.gz: acb123ba546a3bd2d9006abbf3b98b6873a1f73107b30bd365cb0a92156f2d35e4843814a62fe37b074e45b06b4015e0a2922caf281a286888a1572fe9ccc912
data/README.md CHANGED
@@ -25,17 +25,6 @@ namespace :migrate do
25
25
  end
26
26
  ```
27
27
 
28
- ## Development
29
-
30
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
31
-
32
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
33
-
34
- ## Contributing
35
-
36
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/migrations. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
37
-
38
-
39
28
  ## License
40
29
 
41
30
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -1,7 +1,5 @@
1
1
  require 'fileutils'
2
2
 
3
- require 'simple_migrations/version'
4
-
5
3
  module SimpleMigrations
6
4
  class << self
7
5
  def sql_executor(&block)
@@ -35,7 +33,7 @@ module SimpleMigrations
35
33
  sql = File.read(filename)
36
34
  puts sql
37
35
  exec(sql)
38
- exec("insert into schema_migrations(id, ran_at) values(#{id}, '#{Time.now.iso8601}')")
36
+ exec("insert into schema_migrations(id, ran_at) values(#{id}, '#{Time.now.to_s}')")
39
37
  exec('commit')
40
38
  puts 'Done.'
41
39
  end
Binary file
@@ -1,25 +1,19 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'simple_migrations/version'
1
+ Gem::Specification.new do |s|
2
+ s.name = 'simple_migrations'
3
+ s.version = '1.0.0'
4
+ s.licenses = ['MIT']
5
+ s.summary = 'SQL only migrations'
5
6
 
6
- Gem::Specification.new do |spec|
7
- spec.name = "simple_migrations"
8
- spec.version = SimpleMigrations::VERSION
9
- spec.authors = ["Tyler Hartland"]
10
- spec.email = ["tylerhartland7@gmail.com"]
7
+ s.authors = ["Tyler Hartland"]
8
+ s.email = 'tylerhartland7@gmail.com'
9
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
10
+ s.require_paths = ["lib"]
11
+ s.homepage = 'https://github.com/th7/simple_migrations'
12
+ s.metadata = { 'source_code_uri' => 'https://github.com/th7/simple_migrations' }
11
13
 
12
- spec.summary = 'SQL only migrations'
13
- spec.license = "MIT"
14
+ s.add_dependency "rake", '~> 13.0'
14
15
 
15
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
- spec.bindir = "exe"
17
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
- spec.require_paths = ["lib"]
19
-
20
- spec.add_dependency "rake", "~> 11.1"
21
-
22
- spec.add_development_dependency 'pg', '~> 0.15'
23
- spec.add_development_dependency "bundler", "~> 1.12"
24
- spec.add_development_dependency "rspec", "~> 3.0"
16
+ s.add_development_dependency 'pg', '~> 1.0'
17
+ s.add_development_dependency "bundler", "~> 2.0"
18
+ s.add_development_dependency "rspec", "~> 3.0"
25
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Hartland
8
- autorequire:
9
- bindir: exe
8
+ autorequire:
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-25 00:00:00.000000000 Z
11
+ date: 2022-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '11.1'
19
+ version: '13.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '11.1'
26
+ version: '13.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pg
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.15'
33
+ version: '1.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.15'
40
+ version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.12'
47
+ version: '2.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.12'
54
+ version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,9 +66,8 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
- description:
70
- email:
71
- - tylerhartland7@gmail.com
69
+ description:
70
+ email: tylerhartland7@gmail.com
72
71
  executables: []
73
72
  extensions: []
74
73
  extra_rdoc_files: []
@@ -81,17 +80,16 @@ files:
81
80
  - LICENSE.txt
82
81
  - README.md
83
82
  - Rakefile
84
- - bin/console
85
- - bin/setup
86
83
  - lib/simple_migrations.rb
87
84
  - lib/simple_migrations/rake_tasks.rb
88
- - lib/simple_migrations/version.rb
85
+ - simple_migrations-0.1.10.gem
89
86
  - simple_migrations.gemspec
90
- homepage:
87
+ homepage: https://github.com/th7/simple_migrations
91
88
  licenses:
92
89
  - MIT
93
- metadata: {}
94
- post_install_message:
90
+ metadata:
91
+ source_code_uri: https://github.com/th7/simple_migrations
92
+ post_install_message:
95
93
  rdoc_options: []
96
94
  require_paths:
97
95
  - lib
@@ -106,9 +104,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
104
  - !ruby/object:Gem::Version
107
105
  version: '0'
108
106
  requirements: []
109
- rubyforge_project:
110
- rubygems_version: 2.5.1
111
- signing_key:
107
+ rubygems_version: 3.1.6
108
+ signing_key:
112
109
  specification_version: 4
113
110
  summary: SQL only migrations
114
111
  test_files: []
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "simple_migrations"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,3 +0,0 @@
1
- module SimpleMigrations
2
- VERSION = "0.1.8"
3
- end