go_to_param 0.0.8 → 0.0.9

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
  SHA1:
3
- metadata.gz: 4a051d211d8538496f2cf15cc02be928632da95c
4
- data.tar.gz: 0d58cd032dec960e2f956494c7486c541891bcb3
3
+ metadata.gz: 575e842ed9760fb96ae10b48648e03a851f7d201
4
+ data.tar.gz: 8c3ce348dc9739151ba27c7a14f5656d40cdcad1
5
5
  SHA512:
6
- metadata.gz: 6b6945d80f86a4d8c7872b82407eade7a0df4d34425ab698d548fc943c5d4604462c7196a10eb3cf64d320636b0352af9c6358f02a80fa6f882e3207eba73614
7
- data.tar.gz: c7d6e1d186f93dc4db2ae703577044c8515cfcbc90cc919cfa4b40f5d540123409cbf7e579099412969ed4f6edbdee1fbd5813c404bd3fe92daeb54ed5bcc0c0
6
+ metadata.gz: 4b93398509e61b556f3f12afa630df7a0f7af1bc095d8495dbd9084e41186eb6b5385336d7f068ab01304315020b1598b03dbee8bd63bae073842d956c5384c7
7
+ data.tar.gz: 2fd2e88f189dbba5d53410aadc86ca7d84d0801d536a9396db5434c6f7b15dee849fe8eec84e7de60815817041557139965a102aa4167095b2fd959077a23623
@@ -1,3 +1,3 @@
1
1
  module GoToParam
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
data/lib/go_to_param.rb CHANGED
@@ -3,7 +3,8 @@ require "go_to_param/version"
3
3
  module GoToParam
4
4
  def self.included(klass)
5
5
  klass.helper_method :hidden_go_to_tag,
6
- :go_to_hash, :build_go_to_hash
6
+ :go_to_hash, :build_go_to_hash,
7
+ :go_to_path, :go_to_path_or
7
8
  end
8
9
 
9
10
  def hidden_go_to_tag
@@ -68,6 +68,10 @@ describe GoToParam do
68
68
  end
69
69
 
70
70
  describe "#go_to_path" do
71
+ it "becomes a helper method" do
72
+ FakeController.helper_methods.should include :go_to_path
73
+ end
74
+
71
75
  it "is the go_to parameter value" do
72
76
  controller.params = { go_to: "/example", id: "1" }
73
77
  controller.go_to_path.should == "/example"
@@ -80,6 +84,10 @@ describe GoToParam do
80
84
  end
81
85
 
82
86
  describe "#go_to_path_or" do
87
+ it "becomes a helper method" do
88
+ FakeController.helper_methods.should include :go_to_path_or
89
+ end
90
+
83
91
  it "is the go_to parameter value" do
84
92
  controller.params = { go_to: "/example", id: "1" }
85
93
  controller.go_to_path_or("/default").should == "/example"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go_to_param
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik N