grumlin 0.1.0 → 0.1.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: 49bd6724ef81d1ac81e11d07d353b1f474ffaa60616dfab291d3f43ae81f95aa
4
- data.tar.gz: 8023ce32bede0aadaed1c0495654b5d2bec8e244deb007b766561254b7c9b69e
3
+ metadata.gz: 1696d48d04fdfc23de590598ed655a9d2fc59e66e87eb04c5cd579df3805f972
4
+ data.tar.gz: cfa3d4f3ce67d35d5d1b0e5af78024ddb3461b9f4272b1a49015a3527fcc85f0
5
5
  SHA512:
6
- metadata.gz: 434d14086ce4814684de2f414ba9eb9e5dd24f5a96b4acb0861b526f1515ad13dff96d5460d871e8373335f38baae013c248815d08e0ff2616a6ace873e1316a
7
- data.tar.gz: e5fd01d1b8743d263097449f1f17ae515073e6253c7d7cfc11e65e923870b695c5d0a482105a41c20cea2a401f4cd2ffab3282defa74d0e9ed739e60fd850ead
6
+ metadata.gz: 97b8df1e4b6c02d874c9659d7c506704d21f9cfaf419c427c3e00378e3b8a3f3ca30ad53e04b0e6b18dc9161302ed63ddcfcd4df6948edd777beba435424fcf5
7
+ data.tar.gz: c6b0ad7814fdefa25909c4c008ead2a130e807760eed5528d728e854ea88e2c08dbcd9dd5c30caec2c737178285e6c929c0348cf24ce01e4468c09ce72a3723d
@@ -1,18 +1,73 @@
1
1
  name: Ruby
2
2
 
3
- on: [push,pull_request]
3
+ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
- build:
6
+ lint:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
- - uses: actions/checkout@v2
10
- - name: Set up Ruby
11
- uses: ruby/setup-ruby@v1
12
- with:
13
- ruby-version: 3.0.1
14
- - name: Run the default task
15
- run: |
16
- gem install bundler -v 2.2.15
17
- bundle install
18
- bundle exec rake
9
+ - uses: actions/checkout@v2
10
+
11
+ - uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: 3.0
14
+ bundler-cache: true
15
+
16
+ - name: Run the default task
17
+ run: |
18
+ gem install bundler -v 2.2.15
19
+ bundle install
20
+ bundle exec rubocop
21
+ test:
22
+ runs-on: ubuntu-latest
23
+ strategy:
24
+ matrix:
25
+ ruby: [2.6, 2.7, 3.0]
26
+ steps:
27
+ - uses: actions/checkout@v2
28
+
29
+ - uses: ruby/setup-ruby@v1
30
+ with:
31
+ ruby-version: ${{ matrix.ruby }}
32
+ bundler-cache: true
33
+
34
+ - name: Start Gremlin server
35
+ run: |
36
+ docker-compose up -d --build
37
+ sleep 3
38
+
39
+ - name: Install deps
40
+ run: |
41
+ gem install bundler -v 2.2.15
42
+ bundle install
43
+
44
+ - name: Run tests
45
+ run: bundle exec rspec
46
+ publish:
47
+ runs-on: ubuntu-latest
48
+ needs:
49
+ - lint
50
+ - test
51
+ # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
52
+ steps:
53
+ - uses: actions/checkout@v2
54
+
55
+ - uses: ruby/setup-ruby@v1
56
+ with:
57
+ ruby-version: 3.0
58
+ bundler-cache: true
59
+
60
+ - name: Build gem
61
+ run: gem build
62
+
63
+ - name: Create credentials
64
+ run: |
65
+ mkdir ~/.gem
66
+ cat << EOF > ~/.gem/credentials
67
+ ---
68
+ :rubygems_api_key: ${{ secrets.rubygems_api_key }}
69
+ EOF
70
+ chmod 0600 /home/runner/.gem/credentials
71
+
72
+ - name: Push gem
73
+ run: gem push *gem
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ *.gem
9
10
 
10
11
  # rspec failure tracking
11
12
  .rspec_status
data/Gemfile CHANGED
@@ -4,8 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
6
 
7
- gem "rake"
8
-
9
7
  gem "rubocop"
10
8
  gem "rubocop-performance"
11
9
  gem "rubocop-rspec"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grumlin (0.1.0)
4
+ grumlin (0.1.1)
5
5
  async-websocket (~> 0.18)
6
6
 
7
7
  GEM
@@ -74,7 +74,6 @@ GEM
74
74
  protocol-http1 (~> 0.2)
75
75
  racc (1.5.2)
76
76
  rainbow (3.0.0)
77
- rake (13.0.3)
78
77
  regexp_parser (2.1.1)
79
78
  reverse_markdown (2.0.0)
80
79
  nokogiri
@@ -150,7 +149,6 @@ DEPENDENCIES
150
149
  async-rspec
151
150
  factory_bot
152
151
  grumlin!
153
- rake
154
152
  rspec
155
153
  rubocop
156
154
  rubocop-performance
@@ -0,0 +1,6 @@
1
+ version: "3"
2
+ services:
3
+ gremlin_server:
4
+ build: gremlin_server
5
+ ports:
6
+ - "8182:8182"
@@ -0,0 +1,3 @@
1
+ FROM tinkerpop/gremlin-server
2
+
3
+ ADD tinkergraph-empty.properties /opt/gremlin-server/conf/
@@ -0,0 +1,3 @@
1
+ gremlin.graph=org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph
2
+ gremlin.tinkergraph.vertexIdManager=ANY
3
+ gremlin.tinkergraph.edgeIdManager=ANY
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Grumlin
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grumlin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Sinyavskiy
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2021-05-27 00:00:00.000000000 Z
@@ -41,10 +41,12 @@ files:
41
41
  - Gemfile.lock
42
42
  - LICENSE.txt
43
43
  - README.md
44
- - Rakefile
45
44
  - bin/console
46
45
  - bin/setup
47
46
  - bin/stress
47
+ - docker-compose.yml
48
+ - gremlin_server/Dockerfile
49
+ - gremlin_server/tinkergraph-empty.properties
48
50
  - grumlin.gemspec
49
51
  - lib/grumlin.rb
50
52
  - lib/grumlin/client.rb
@@ -64,7 +66,7 @@ metadata:
64
66
  homepage_uri: https://github.com/zhulik/grumlin
65
67
  source_code_uri: https://github.com/zhulik/grumlin
66
68
  changelog_uri: https://github.com/zhulik/grumlin/blob/master/CHANGELOG.md
67
- post_install_message:
69
+ post_install_message:
68
70
  rdoc_options: []
69
71
  require_paths:
70
72
  - lib
@@ -80,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
82
  version: '0'
81
83
  requirements: []
82
84
  rubygems_version: 3.2.15
83
- signing_key:
85
+ signing_key:
84
86
  specification_version: 4
85
87
  summary: A ruby client for Gremlin query language.
86
88
  test_files: []
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- require "rubocop/rake_task"
9
-
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]