railbus 0.2.0 → 0.2.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: c9c2e34aa14ab37ae14293ac159f7c1d8850f36ee5063bc373ff63c3d26fea36
4
- data.tar.gz: a2573f5dd914ed8a0f8756d5905696f4e770387d8f068f20b615b901b37397cf
3
+ metadata.gz: 74ca961ecee6d52dfc88a5aeec8f31514cb9a9c3a7f38f72196c071457c49a74
4
+ data.tar.gz: 0554b6578708ca46b022991be41f8a9ffb2fa3eb6e403b40ce1bb4e269072898
5
5
  SHA512:
6
- metadata.gz: 2f058f3bbf84e63f96b5a797c7083e0aacb4c1a1ad7f40c19553c885dc28e223397976a57badfc95a77078bb5a41b2f5c8ce2335b273946d4763769b515a4728
7
- data.tar.gz: 115f416c92960e08fd12dec4f2ad4f8eb76fb93f9b76450071546b8d5b3f9b91f2a5dffe61f842fb8f9a2d805dd684fba0e70a79549050ac4db91a5e0ce026c1
6
+ metadata.gz: ecf3d7f262a0bb6773105d4a2287724038386529d20019c5e8e2bdc1db4930239bfb1c652929ace745b55a4620291ebc36945e024e43f7406acd29f9750fbbf8
7
+ data.tar.gz: d2a7ed62637b2d034becf32977a3b87a8b37b40aa19444a1117f08243dcbe682fdb165f5aa7281373c50a985fac228f76f548d1a30c7f43d2533ddbc6a183735
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ # Version 0.2.1
4
+
5
+ Reset current directory (`Dir.pwd`) to project root in the generator
6
+ `railbus:install`.
7
+
3
8
  # Version 0.2.0
4
9
 
5
10
  1. Extract Axios-related functionality to NPM package 'yambus-axios'.
@@ -6,7 +6,11 @@ module Railbus
6
6
  desc 'Install dependencies and example file with routes'
7
7
 
8
8
  def install
9
- exit unless run 'yarn add @crosspath/yambus @crosspath/yambus-axios'
9
+ # It's important to reset `Dir.pwd` because it's set to
10
+ # parent dir of `Rails.root` while running `rails new` command.
11
+ Dir.chdir(::Rails.root) do
12
+ exit unless run 'yarn add @crosspath/yambus @crosspath/yambus-axios'
13
+ end
10
14
 
11
15
  create_file('app/javascript/lib/routes.js.erb') do |f|
12
16
  <<-LINE
@@ -1,3 +1,3 @@
1
1
  module Railbus
2
- VERSION = "0.2.0"
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railbus
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
  - Evgeniy Nochevnov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-17 00:00:00.000000000 Z
11
+ date: 2021-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubygems_version: 3.0.3
100
+ rubygems_version: 3.1.4
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Generate JS functions for XHR requests to Rails routes