graphql_scaffold_fan 0.2.1 → 0.2.2

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: 2f755d7a5c9191354b222be9f9fcd9c4c51c1338dff06c7071af1347bee84d30
4
- data.tar.gz: 4843677bfe20e96fe2938cba3acf89660a48c2120234d119eea9ab9cd087cc14
3
+ metadata.gz: c5d1ca8a0189f63ad24ce0019951498fd7ca52cece5e315ab891ae45a4644a9c
4
+ data.tar.gz: f5c422b16830b29a6c53c78a826f884fd4f94f5cbc621431394b63b4d9bf07fd
5
5
  SHA512:
6
- metadata.gz: a15f608b54dcae10a5fdf830ad615e0ebe88eaf55e0c4855b8549a1f0331b31237d3c52d64958ffa3ca92f3fb24464abc61098ea8160e123e3a99a910b92c031
7
- data.tar.gz: 0066a77155de7f9f7d68ccdd89dd2c8e3093962b9e6657b3c968f2da9f7c3bc01ae4fde1a084d39edcfd72b21e1b0459d1e987bccd5f7dbe19e72a3c210c2066
6
+ metadata.gz: 1cd7db1267f68770cea00fdaa8c50f92dbae8238f5acca3f12abd190766dafb63f4c342d684324586d2616a8ef500d57bc8943ddf635c8156578c8907a914cb4
7
+ data.tar.gz: 2b1e7e7eab3ef3c1cc39e3e8c47b0210bb537c9c0d46f71ceef3c337e3d69526c0303e4dd809d44fe984308ddc6ad38a3a360c36ed76f41a09e61bdc9d33bf74
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphql_scaffold_fan (0.2.1)
4
+ graphql_scaffold_fan (0.2.2)
5
5
  graphql
6
6
  graphql_playground-rails
7
7
 
@@ -57,6 +57,26 @@ module GraphqlScaffold
57
57
  p 'Please create routes.rb file under config folder firstly'
58
58
  end
59
59
  end
60
+
61
+ def add_gem_dependencies
62
+
63
+ route_file_path = 'Gemfile'
64
+
65
+ p 'Gemfile does not exist' unless File.exist?(route_file_path)
66
+
67
+ if File.exist?(route_file_path)
68
+ file = File.open(route_file_path)
69
+ file_data = file.read
70
+ new_file_data = file_data.insert(-2, "\ngem 'graphql_playground-rails'")
71
+ File.write(file, new_file_data)
72
+ Bundler.with_clean_env do
73
+ run "bundle install"
74
+ end
75
+ p 'Write to Gemfile successfully'
76
+ else
77
+ p 'Please create Gemfile file firstly'
78
+ end
79
+ end
60
80
  end
61
81
  end
62
82
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GraphqlScaffoldFan
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql_scaffold_fan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fan Zhang