trello_freestyler 0.2.0 → 0.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
  SHA256:
3
- metadata.gz: 35de638b7bb3a0f9ff9c56a4af3f31c5151075ff1e12c3411fe0ef770cae0264
4
- data.tar.gz: bd8a271525555b14b2dfa82b4b57e56bc13ac53613e7df4487735e59a1ad5fae
3
+ metadata.gz: 8902c6973538966245fa46056c6fdd589f689ce8c299c808dfe723e3d9d5fc3a
4
+ data.tar.gz: f5f4bf76f03de14db290a7137d11a468bde66fdecbc090d62141afcecb590413
5
5
  SHA512:
6
- metadata.gz: a24ffae7a1431c18654581712ed51e7a9afbb785aa19261245fa90a2ae27191b20b7e4f399fa03d5bea5410321156f10d9a48c25a01d5029d07c59a2532b8222
7
- data.tar.gz: 1b46c57c2cecfae190294daa4de405b4af8bb36dd4b41ac8e798bf381ca35af22983c21914470c9263243905208ed453900ad302f1bc04476e04a982e1e8c550
6
+ metadata.gz: b495caba834f3f2b8cd638e1c8c91184b8355673848dddf224be9777c380ee9a3cafbd283c1dfcc3939c1456ce13420eb07258fe42ce47c93a71040880f24481
7
+ data.tar.gz: 48f689e7b8707c98818e67d8881de55485734c70aebf2d5cda9aa5b72f83c985ae3a82fe73454a85da9028d08dad074b7aa8496580009ce0b684bbf873bd59ee
@@ -0,0 +1,30 @@
1
+ name: trello_freestyler
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ house-keeping:
11
+ name: Keep it tight and stylie
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Check out repository code
15
+ uses: actions/checkout@v2
16
+ - name: Run Tests
17
+ run: auto/test
18
+ - name: Call the Cops
19
+ run: auto/style-check
20
+ build:
21
+ needs: house-keeping
22
+ name: Build + Publish Gem
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - name: Check out repository code
26
+ uses: actions/checkout@v2
27
+ - name: Run
28
+ run: auto/publish
29
+ env:
30
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
data/.gitignore CHANGED
@@ -11,3 +11,4 @@
11
11
  .rspec_status
12
12
 
13
13
  .output
14
+ trello_freestyle*.gem
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trello_freestyler (0.1.0)
5
- rest-client
6
- tty-spinner
7
- tzinfo
4
+ trello_freestyler (0.2.1)
5
+ rest-client (~> 2.1)
6
+ tty-spinner (~> 0.9)
7
+ tzinfo (~> 2.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
@@ -76,11 +76,11 @@ PLATFORMS
76
76
  ruby
77
77
 
78
78
  DEPENDENCIES
79
- rake
80
- rspec
81
- rubocop
82
- rubocop-emoji
83
- rubocop-rspec
79
+ rake (~> 12.3)
80
+ rspec (~> 3.9)
81
+ rubocop (~> 0.91)
82
+ rubocop-emoji (~> 0.1)
83
+ rubocop-rspec (~> 1.43)
84
84
  trello_freestyler!
85
85
 
86
86
  BUNDLED WITH
data/README.md CHANGED
@@ -160,18 +160,14 @@ They form the minimum requirements to work out which member was on which card at
160
160
 
161
161
  ## Development
162
162
 
163
- 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.
163
+ Sets up the docker development environment
164
164
 
165
- 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).
166
-
167
- Can use this gem to bump versions
168
165
  ```bash
169
- gem install gem-release
170
- $ gem bump --version minor # bumps to the next minor version
171
- $ gem bump --version major # bumps to the next major version
172
- $ gem bump --version 1.1.1 # bumps to the specified version
166
+ ./auto/dev
173
167
  ```
174
168
 
169
+ Github actions automatically deploy new gem version
170
+
175
171
  ## Contributing
176
172
 
177
173
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/trello_freestyler. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/trello_freestyler/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,12 @@
1
+ #!/bin/bash -e
2
+
3
+ cd $(dirname $0)/..
4
+
5
+ trap "docker-compose down --volumes --remove-orphans" 0
6
+ docker-compose down --volumes --remove-orphans
7
+
8
+ docker volume create --name ruby2.7-gem-cache > /dev/null
9
+
10
+ docker-compose build dev
11
+ docker-compose run --rm dev 'bundle check > /dev/null || flock $GEM_HOME bundle install'
12
+ docker-compose run --rm dev "${@-bash}"
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ $(dirname $0)/dev "bin/publish"
@@ -0,0 +1,7 @@
1
+ #!/bin/bash -e
2
+
3
+ cd $(dirname $0)/..
4
+
5
+ echo '+++ :runner: Calling the cops'
6
+
7
+ $(dirname $0)/dev "bundle exec rubocop"
@@ -0,0 +1,7 @@
1
+ #!/bin/bash -e
2
+
3
+ cd $(dirname $0)/..
4
+
5
+ echo '+++ :runner: Running the specs'
6
+
7
+ $(dirname $0)/dev "bundle exec rspec"
@@ -0,0 +1,17 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ if [[ -z "${GEM_HOST_API_KEY}" ]]; then
5
+ echo '--- ERROR: GEM_HOST_API_KEY is not provided. Needs to be populated with a https://rubygems.org API key!'
6
+ exit 1
7
+ fi
8
+
9
+ echo '--- Setting up Gem Credentials'
10
+ mkdir -p $HOME/.gem
11
+ touch $HOME/.gem/credentials
12
+ chmod 0600 $HOME/.gem/credentials
13
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
14
+
15
+ echo '--- Publishing gem'
16
+ gem build *.gemspec
17
+ gem push *.gem
@@ -0,0 +1,16 @@
1
+ version: '2'
2
+
3
+ volumes:
4
+ ruby2.7-gem-cache:
5
+ external: true
6
+
7
+ services:
8
+ dev:
9
+ image: ruby:2.7.1
10
+ working_dir: /app
11
+ volumes:
12
+ - .:/app
13
+ - ruby2.7-gem-cache:/usr/local/bundle
14
+ environment:
15
+ GEM_HOST_API_KEY:
16
+ entrypoint: ["/bin/bash", "-c"]
@@ -2,3 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require_relative '../lib/trello_freestyler'
5
+
6
+ TrelloFreestyler.run
@@ -5,24 +5,28 @@ require_relative 'trello_freestyler/cli'
5
5
  require_relative 'trello_freestyler/main'
6
6
  require 'tty-spinner'
7
7
 
8
- if ARGV.length.positive?
9
- spinners = TTY::Spinner::Multi.new("[:spinner] Trello Freestyler")
10
- sp1 = spinners.register "[:spinner] Validate input options"
11
- sp1.auto_spin
8
+ module TrelloFreestyler
9
+ def self.run
10
+ if ARGV.length.positive?
11
+ spinners = TTY::Spinner::Multi.new('[:spinner] Trello Freestyler')
12
+ sp1 = spinners.register '[:spinner] Validate input options'
13
+ sp1.auto_spin
12
14
 
13
- options = TrelloFreestyler::Cli.parse(ARGV)
15
+ options = TrelloFreestyler::Cli.parse(ARGV)
14
16
 
15
- sp1.success
17
+ sp1.success
16
18
 
17
- sp2 = spinners.register "[:spinner] Download and clean trello data"
18
- sp3 = spinners.register "[:spinner] Output data to: '#{options.output}'"
19
- sp2.auto_spin
20
- sp3.auto_spin
19
+ sp2 = spinners.register '[:spinner] Download and clean trello data'
20
+ sp3 = spinners.register "[:spinner] Output data to: '#{options.output}'"
21
+ sp2.auto_spin
22
+ sp3.auto_spin
21
23
 
22
- TrelloFreestyler::Main.dump(options)
24
+ TrelloFreestyler::Main.dump(options)
23
25
 
24
- sp2.success
25
- sp3.success
26
- else
27
- TrelloFreestyler::Cli.parse %w[--help]
28
- end
26
+ sp2.success
27
+ sp3.success
28
+ else
29
+ TrelloFreestyler::Cli.parse %w[--help]
30
+ end
31
+ end
32
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TrelloFreestyler
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
@@ -18,15 +18,15 @@ Gem::Specification.new do |spec|
18
18
  spec.metadata['source_code_uri'] = 'https://github.com/juzham/trello_freestyler'
19
19
  spec.metadata['changelog_uri'] = 'https://github.com/juzham/trello_freestyler/CHANGELOG.md'
20
20
 
21
- spec.add_runtime_dependency 'rest-client'
22
- spec.add_runtime_dependency 'tty-spinner'
23
- spec.add_runtime_dependency 'tzinfo'
21
+ spec.add_runtime_dependency 'rest-client', '~> 2.1'
22
+ spec.add_runtime_dependency 'tty-spinner', '~> 0.9'
23
+ spec.add_runtime_dependency 'tzinfo', '~> 2.0'
24
24
 
25
- spec.add_development_dependency 'rake'
26
- spec.add_development_dependency 'rspec'
27
- spec.add_development_dependency 'rubocop'
28
- spec.add_development_dependency 'rubocop-emoji'
29
- spec.add_development_dependency 'rubocop-rspec'
25
+ spec.add_development_dependency 'rake', '~> 12.3'
26
+ spec.add_development_dependency 'rspec', '~> 3.9'
27
+ spec.add_development_dependency 'rubocop', '~> 0.91'
28
+ spec.add_development_dependency 'rubocop-emoji', '~> 0.1'
29
+ spec.add_development_dependency 'rubocop-rspec', '~> 1.43'
30
30
 
31
31
  # Specify which files should be added to the gem when it is released.
32
32
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trello_freestyler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Hamman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2020-09-22 00:00:00.000000000 Z
@@ -14,114 +14,114 @@ dependencies:
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '2.1'
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: '0'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: tty-spinner
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '0.9'
34
34
  type: :runtime
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'
40
+ version: '0.9'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: tzinfo
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '2.0'
48
48
  type: :runtime
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: '0'
54
+ version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '12.3'
62
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: '0'
68
+ version: '12.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '3.9'
76
76
  type: :development
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: '0'
82
+ version: '3.9'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '0.91'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '0.91'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop-emoji
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '0.1'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '0.1'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop-rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: '1.43'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: '1.43'
125
125
  description: Built so trello data can be easily ingested into BigQuery.
126
126
  email:
127
127
  - justinhamman@gmail.com
@@ -130,18 +130,24 @@ executables:
130
130
  extensions: []
131
131
  extra_rdoc_files: []
132
132
  files:
133
+ - ".github/workflows/gem-push.yml"
133
134
  - ".gitignore"
134
135
  - ".rspec"
135
136
  - ".rubocop.yml"
136
- - ".travis.yml"
137
137
  - CODE_OF_CONDUCT.md
138
138
  - Gemfile
139
139
  - Gemfile.lock
140
140
  - LICENSE.txt
141
141
  - README.md
142
142
  - Rakefile
143
+ - auto/dev
144
+ - auto/publish
145
+ - auto/style-check
146
+ - auto/test
143
147
  - bin/console
148
+ - bin/publish
144
149
  - bin/setup
150
+ - docker-compose.yml
145
151
  - exe/trello_freestyler
146
152
  - lib/trello_freestyler.rb
147
153
  - lib/trello_freestyler/cli.rb
@@ -157,7 +163,7 @@ metadata:
157
163
  homepage_uri: https://rubygems.org/gems/trello_freestyler
158
164
  source_code_uri: https://github.com/juzham/trello_freestyler
159
165
  changelog_uri: https://github.com/juzham/trello_freestyler/CHANGELOG.md
160
- post_install_message:
166
+ post_install_message:
161
167
  rdoc_options: []
162
168
  require_paths:
163
169
  - lib
@@ -173,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
179
  version: '0'
174
180
  requirements: []
175
181
  rubygems_version: 3.1.2
176
- signing_key:
182
+ signing_key:
177
183
  specification_version: 4
178
184
  summary: Uses the Trello API to dump json line files for a Trello board and its actions.
179
185
  test_files: []
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.7.1
6
- before_install: gem install bundler -v 2.1.4