active_model_serializer_helpers 0.1.0.pre.alpha → 0.2.3.pre.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.rubocop.yml +14 -0
- data/Rakefile +2 -0
- data/active_model_serializer_helpers.gemspec +3 -1
- data/circle.yml +9 -8
- data/lib/active_model_serializer_helpers/repo.rb +4 -0
- data/lib/active_model_serializer_helpers/version.rb +1 -1
- data/tasks/deploy.rake +46 -0
- metadata +17 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c627fb02fa3ca3391e506cc90d1a8921970373cf
|
4
|
+
data.tar.gz: d69bf4fd6f8bdc7607bbb9b2bf8188a571043682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83ab1a3571a449e8232e73eba6ed8246d5b1a76960c540fd0209ff897f6fffec16c7ca18c26cb3496d0538a8e31056a959b81d9aeb5f93043ab3d34800c7fdad
|
7
|
+
data.tar.gz: f12b0ae4898fbcf2c4bac989e877da9ae4387b4bce10412ac5a1d2e6391314d00fd7c98430915f3323f71bba20aa645ce83857494199bf9cf617b03b4c7cf34e
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -6,3 +6,17 @@ Style/Documentation:
|
|
6
6
|
|
7
7
|
Style/FrozenStringLiteralComment:
|
8
8
|
Enabled: false
|
9
|
+
|
10
|
+
Metrics/LineLength:
|
11
|
+
Max: 120
|
12
|
+
# To make it possible to copy or click on URIs in the code, we allow lines
|
13
|
+
# containing a URI to be longer than Max.
|
14
|
+
AllowHeredoc: true
|
15
|
+
AllowURI: true
|
16
|
+
URISchemes:
|
17
|
+
- http
|
18
|
+
- https
|
19
|
+
|
20
|
+
Metrics/MethodLength:
|
21
|
+
CountComments: false # count full line comments?
|
22
|
+
Max: 20
|
data/Rakefile
CHANGED
@@ -2,6 +2,7 @@
|
|
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'
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
8
|
spec.name = 'active_model_serializer_helpers'
|
@@ -11,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
11
12
|
|
12
13
|
spec.summary = 'Active Model Serializer Helpers'
|
13
14
|
spec.description = 'Active Model Serializer RSpec Helpers and Matchers'
|
14
|
-
spec.homepage =
|
15
|
+
spec.homepage = ActiveModelSerializerHelpers::REPOSITORY
|
15
16
|
spec.license = 'MIT'
|
16
17
|
|
17
18
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
@@ -25,4 +26,5 @@ Gem::Specification.new do |spec|
|
|
25
26
|
spec.add_development_dependency 'rake', '~> 10.0'
|
26
27
|
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.2.3'
|
27
28
|
spec.add_dependency 'rspec', '~> 3.0'
|
29
|
+
spec.add_dependency 'octokit', '~> 4.7'
|
28
30
|
end
|
data/circle.yml
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
general:
|
2
2
|
branches:
|
3
3
|
ignore:
|
4
|
-
-
|
4
|
+
- master
|
5
|
+
dependencies:
|
6
|
+
pre:
|
7
|
+
- gem install bundler --pre
|
8
|
+
test:
|
9
|
+
override:
|
10
|
+
- RAILS_ENV=test bundle exec rspec -r rspec_junit_formatter --format progress --format RspecJunitFormatter -o $CIRCLE_TEST_REPORTS/rspec/junit.xml
|
5
11
|
deployment:
|
6
12
|
release:
|
7
|
-
tag: /v*/
|
13
|
+
tag: /v[0-9]+(\.[0-9]+)*/
|
8
14
|
owner: roalcantara
|
9
15
|
commands:
|
16
|
+
- echo ":rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
|
10
17
|
- gem build active_model_serializer_helpers.gemspec
|
11
18
|
- gem push *.gem
|
12
|
-
dependencies:
|
13
|
-
pre:
|
14
|
-
- gem install bundler --pre
|
15
|
-
test:
|
16
|
-
override:
|
17
|
-
- RAILS_ENV=test bundle exec rspec -r rspec_junit_formatter --format progress --format RspecJunitFormatter -o $CIRCLE_TEST_REPORTS/rspec/junit.xml
|
data/tasks/deploy.rake
ADDED
@@ -0,0 +1,46 @@
|
|
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
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_model_serializer_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.3.pre.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rogério Rodrigues de Alcântara
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: octokit
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4.7'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4.7'
|
69
83
|
description: Active Model Serializer RSpec Helpers and Matchers
|
70
84
|
email:
|
71
85
|
- rogerio.alcantara@gmail.com
|
@@ -90,7 +104,9 @@ files:
|
|
90
104
|
- lib/active_model_serializer_helpers/matchers.rb
|
91
105
|
- lib/active_model_serializer_helpers/matchers/be_a_serialized.rb
|
92
106
|
- lib/active_model_serializer_helpers/matchers/be_serializable.rb
|
107
|
+
- lib/active_model_serializer_helpers/repo.rb
|
93
108
|
- lib/active_model_serializer_helpers/version.rb
|
109
|
+
- tasks/deploy.rake
|
94
110
|
homepage: https://github.com/roalcantara/active_model_serializer_helpers
|
95
111
|
licenses:
|
96
112
|
- MIT
|