graphml2json 0.1.0 → 0.1.1

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
2
  SHA256:
3
- metadata.gz: 90e038ecdb0e2038bb4f4b5a274e2d30c112c29f6f47fb0d8ba07f5436e9aece
4
- data.tar.gz: b30c4012708853363a099c210818a9614c283e4ad71e89cedc99175ad8cce775
3
+ metadata.gz: 4fe006d9248b334a32c63928f6db553d5248f300b9ba003bf44b89dd58a5624a
4
+ data.tar.gz: afe65117707571227619219fe362c609711fd280cbb223a2efc713441438d90b
5
5
  SHA512:
6
- metadata.gz: d365932f68e60f125c41db42e62b8d50c86ec5660d7a110951631abac8a5428a17166f57dd69f807ec947dc057c6df732775a4c463966a4f06cb557bd257cf9f
7
- data.tar.gz: 93d9b6fd54733783286915763e6502d7611507004a03fdd37cf6b1f7c98bc7e2a13546f1c792696ff1a63160b5e606e7613e74e09c1baab524cb14304084007b
6
+ metadata.gz: 3012421865602f1148a4d03b2c733f28624c9258aea948c53b105fe6bea960e712610c31afcf7c6f5f9a6747b1569b018285b5d175b6c081c73c9a92f2b9d64d
7
+ data.tar.gz: 5fd5a9ddfd769ceb4fc468f72ba2ff8cf19335288818bca5118c1cde7b5a1f36d3a66934c27465d0f16b3d51920fe28bbaa22ea8b35ca2c7ed44270df13efc90
@@ -0,0 +1,7 @@
1
+ .git
2
+ .gitignore
3
+ log/*
4
+ tmp/*
5
+ *.swp
6
+ *.swo
7
+ Gemfile.lock
@@ -1,3 +1,7 @@
1
+ # 0.1.1 / 2020-07-20
2
+
3
+ * Update dependencies
4
+
1
5
  # 0.1.0 / 2018-12-30
2
6
 
3
7
  * Add command line excutable helper
@@ -0,0 +1,16 @@
1
+ From ruby:2.5
2
+
3
+ RUN gem install bundler
4
+ COPY *gemspec /usr/src/app/
5
+ COPY Gemfile /usr/src/app/
6
+ COPY lib/graphml2json/version.rb /usr/src/app/lib/graphml2json/
7
+ COPY bin /usr/src/app/
8
+ COPY bin/* /usr/src/app/bin/
9
+
10
+
11
+ WORKDIR /usr/src/app
12
+ RUN bin/setup
13
+
14
+ COPY . /usr/src/app/
15
+
16
+ CMD ["bundle", "exec", "rspec", "--color", "--format", "doc"]
data/README.md CHANGED
@@ -31,7 +31,7 @@ Or install it yourself as:
31
31
  => "{\"nodes\":[{\"name\":0,\"d0\":\"green\"},{\"name\":1},{\"name\":2,\"d0\":\"blue\"},{\"name\":3,\"d0\":\"red\"},{\"name\":4},{\"name\":5,\"d0\":\"turquoise\"}],\"edges\":[{\"source\":0,\"target\":2,\"d1\":\"1.0\"},{\"source\":0,\"target\":1,\"d1\":\"1.0\"},{\"source\":1,\"target\":3,\"d1\":\"2.0\"},{\"source\":3,\"target\":2},{\"source\":2,\"target\":4},{\"source\":3,\"target\":5},{\"source\":5,\"target\":4,\"d1\":\"1.1\"}]}"
32
32
  ```
33
33
 
34
- ### From a terminal
34
+ ### From a terminal
35
35
 
36
36
  You can also invoke the `graphml2json` utility from the command line. It takes stdin as input.
37
37
 
@@ -100,6 +100,21 @@ $ curl http://graphml.graphdrawing.org/primer/attributes.graphml | graphml2json
100
100
 
101
101
  ```
102
102
 
103
+ ### Usage From Docker
104
+
105
+ cd docker_runner
106
+ docker build -t graphml2json .
107
+
108
+ # notice no `t` in docker run command
109
+ curl http://graphml.graphdrawing.org/primer/attributes.graphml | docker run -i --rm graphml2json
110
+
111
+ ### For Docker Dev
112
+
113
+ docker build -t graphml_dev .
114
+
115
+ # run tests
116
+ docker run -it --rm graphml_dev
117
+
103
118
  ## Changelog
104
119
 
105
120
  * [changelog](https://github.com/gregors/graphml2json/blob/master/CHANGELOG.md)
@@ -0,0 +1,8 @@
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
@@ -0,0 +1,8 @@
1
+ From ruby:2.5
2
+
3
+ COPY . /usr/src/app/
4
+ WORKDIR /usr/src/app
5
+ RUN gem install bundler
6
+ RUN bundle install
7
+
8
+ CMD ["bundle", "exec", "graphml2json"]
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gem 'graphml2json'
@@ -0,0 +1,14 @@
1
+ # Graphml2json Docker runner
2
+
3
+ This utility takes graphml and converts it to json suitable for use in D3
4
+
5
+
6
+ ## Usage
7
+
8
+
9
+ ### Usage From Docker
10
+
11
+ docker build -t graphml2json .
12
+
13
+ # notice no `t` in docker run command
14
+ curl http://graphml.graphdrawing.org/primer/attributes.graphml | docker run -i --rm graphml2json
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_dependency 'nokogiri', '>= 1.8.2'
22
- spec.add_development_dependency 'bundler', '~> 1.6'
23
- spec.add_development_dependency "rspec", '~> 2.14.1'
24
- spec.add_development_dependency "rake"
22
+ spec.add_development_dependency 'bundler', '~> 2.0'
23
+ spec.add_development_dependency 'rspec', '~> 3.0'
24
+ spec.add_development_dependency "rake", "~> 13.0"
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Graphml2Json
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphml2json
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
  - Gregory Ostermayr
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-31 00:00:00.000000000 Z
11
+ date: 2020-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -30,58 +30,65 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.6'
33
+ version: '2.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: '1.6'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.14.1
47
+ version: '3.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: 2.14.1
54
+ version: '3.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: '13.0'
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: '13.0'
69
69
  description: Convert graphml to json for D3 use
70
70
  email:
71
71
  - "<gregory.ostermayr@gmail.com>"
72
72
  executables:
73
73
  - graphml2json
74
+ - setup
74
75
  extensions: []
75
76
  extra_rdoc_files: []
76
77
  files:
78
+ - ".dockerignore"
77
79
  - ".gitignore"
78
80
  - ".rspec"
79
81
  - CHANGELOG.md
82
+ - Dockerfile
80
83
  - Gemfile
81
84
  - LICENSE.txt
82
85
  - README.md
83
86
  - Rakefile
84
87
  - bin/graphml2json
88
+ - bin/setup
89
+ - docker_runner/Dockerfile
90
+ - docker_runner/Gemfile
91
+ - docker_runner/README.md
85
92
  - graphml2json.gemspec
86
93
  - lib/graphml2json.rb
87
94
  - lib/graphml2json/version.rb
@@ -94,7 +101,7 @@ homepage: https://github.com/gregors/graphml2json
94
101
  licenses:
95
102
  - MIT
96
103
  metadata: {}
97
- post_install_message:
104
+ post_install_message:
98
105
  rdoc_options: []
99
106
  require_paths:
100
107
  - lib
@@ -109,9 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
116
  - !ruby/object:Gem::Version
110
117
  version: '0'
111
118
  requirements: []
112
- rubyforge_project:
113
- rubygems_version: 2.7.7
114
- signing_key:
119
+ rubygems_version: 3.0.8
120
+ signing_key:
115
121
  specification_version: 4
116
122
  summary: Convert graphml to json for D3 use
117
123
  test_files: