active_model_serializer_helpers 0.2.3.pre.alpha → 0.3.0.pre.alpha

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: c627fb02fa3ca3391e506cc90d1a8921970373cf
4
- data.tar.gz: d69bf4fd6f8bdc7607bbb9b2bf8188a571043682
3
+ metadata.gz: c87c94e3340d28a4bb933fa07b547ae2b54b13e8
4
+ data.tar.gz: 9f641c23b53f3617307a4670871962f87f331e68
5
5
  SHA512:
6
- metadata.gz: 83ab1a3571a449e8232e73eba6ed8246d5b1a76960c540fd0209ff897f6fffec16c7ca18c26cb3496d0538a8e31056a959b81d9aeb5f93043ab3d34800c7fdad
7
- data.tar.gz: f12b0ae4898fbcf2c4bac989e877da9ae4387b4bce10412ac5a1d2e6391314d00fd7c98430915f3323f71bba20aa645ce83857494199bf9cf617b03b4c7cf34e
6
+ metadata.gz: 0b342c8903eea9e36a8dc29c15d8b2859bd834a1211fc0af2c00b406b57691ca41d6d058ccc3ef5ad86ba614150cd85d561f5f6dce83ae50c742d73ee5c05bd9
7
+ data.tar.gz: 5fd808db402c2ce7b3978c602094f9dc6c41d9a8eaa44f511f97656e0be949801d48726b1b38bbdb006e5480b03d4209bf8ce2d46319427700c0bb9c56c99f4c
data/Rakefile CHANGED
@@ -1,8 +1,8 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
3
 
4
- Dir[File.dirname(__FILE__) + '/tasks/*.rake'].each { |task| import task }
5
-
6
4
  RSpec::Core::RakeTask.new(:spec)
7
5
 
8
6
  task default: :spec
7
+
8
+ require 'github/rake/release'
@@ -2,7 +2,6 @@
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'active_model_serializer_helpers/version'
5
- require 'active_model_serializer_helpers/repo'
6
5
 
7
6
  Gem::Specification.new do |spec|
8
7
  spec.name = 'active_model_serializer_helpers'
@@ -12,7 +11,7 @@ Gem::Specification.new do |spec|
12
11
 
13
12
  spec.summary = 'Active Model Serializer Helpers'
14
13
  spec.description = 'Active Model Serializer RSpec Helpers and Matchers'
15
- spec.homepage = ActiveModelSerializerHelpers::REPOSITORY
14
+ spec.homepage = 'https://github.com/roalcantara/active_model_serializer_helpers'
16
15
  spec.license = 'MIT'
17
16
 
18
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -25,6 +24,7 @@ Gem::Specification.new do |spec|
25
24
  spec.add_development_dependency 'bundler', '~> 1.14'
26
25
  spec.add_development_dependency 'rake', '~> 10.0'
27
26
  spec.add_development_dependency 'rspec_junit_formatter', '~> 0.2.3'
27
+ spec.add_development_dependency 'github-rake-release', '~> 0.1.1.pre.alpha'
28
+
28
29
  spec.add_dependency 'rspec', '~> 3.0'
29
- spec.add_dependency 'octokit', '~> 4.7'
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveModelSerializerHelpers
2
- VERSION = '0.2.3-alpha'.freeze
2
+ VERSION = '0.3.0-alpha'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_model_serializer_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.pre.alpha
4
+ version: 0.3.0.pre.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rogério Rodrigues de Alcântara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-08 00:00:00.000000000 Z
11
+ date: 2017-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,33 +53,33 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.2.3
55
55
  - !ruby/object:Gem::Dependency
56
- name: rspec
56
+ name: github-rake-release
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.0'
62
- type: :runtime
61
+ version: 0.1.1.pre.alpha
62
+ type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.0'
68
+ version: 0.1.1.pre.alpha
69
69
  - !ruby/object:Gem::Dependency
70
- name: octokit
70
+ name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '4.7'
75
+ version: '3.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '4.7'
82
+ version: '3.0'
83
83
  description: Active Model Serializer RSpec Helpers and Matchers
84
84
  email:
85
85
  - rogerio.alcantara@gmail.com
@@ -104,9 +104,7 @@ files:
104
104
  - lib/active_model_serializer_helpers/matchers.rb
105
105
  - lib/active_model_serializer_helpers/matchers/be_a_serialized.rb
106
106
  - lib/active_model_serializer_helpers/matchers/be_serializable.rb
107
- - lib/active_model_serializer_helpers/repo.rb
108
107
  - lib/active_model_serializer_helpers/version.rb
109
- - tasks/deploy.rake
110
108
  homepage: https://github.com/roalcantara/active_model_serializer_helpers
111
109
  licenses:
112
110
  - MIT
@@ -127,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
125
  version: 1.3.1
128
126
  requirements: []
129
127
  rubyforge_project:
130
- rubygems_version: 2.6.8
128
+ rubygems_version: 2.6.11
131
129
  signing_key:
132
130
  specification_version: 4
133
131
  summary: Active Model Serializer Helpers
@@ -1,4 +0,0 @@
1
- module ActiveModelSerializerHelpers
2
- REPO = 'roalcantara/active_model_serializer_helpers'.freeze
3
- REPOSITORY = "https://github.com/#{REPO}".freeze
4
- end
data/tasks/deploy.rake DELETED
@@ -1,46 +0,0 @@
1
- require 'octokit'
2
-
3
- namespace :github do
4
- desc 'GitHub authentication'
5
- task :auth do
6
- begin
7
- Octokit.configure do |c|
8
- c.access_token = ENV['GITHUB_ACCESS_TOKEN']
9
- end
10
-
11
- rate_limit = Octokit.rate_limit!
12
- puts 'Exceeded limit of the GitHub API request' if rate_limit.remaining.zero?
13
- rescue => e
14
- puts e.message
15
- end
16
- end
17
- end
18
-
19
- namespace :deploy do
20
- desc 'Merges the develop branch into master'
21
- task :merge do
22
- sh 'git fetch'
23
- sh 'git checkout master'
24
- sh 'git pull'
25
- sh 'git merge origin/develop'
26
- sh 'git push'
27
- end
28
-
29
- desc 'Merges the develop branch into master and creates a release'
30
- task :release, [:version, :title, :body] => ['github:auth', :merge] do |_t, args|
31
- begin
32
- Octokit.create_release(
33
- ActiveModelSerializerHelpers::REPO,
34
- args.version,
35
- name: args.title,
36
- body: args.body,
37
- target_commitish: :master,
38
- draft: false,
39
- prerelease: false
40
- )
41
- puts "#{args.version} released in the wild! YAY!"
42
- rescue => e
43
- puts e.message
44
- end
45
- end
46
- end