opal-httpget 0.1.3 → 0.1.5

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: f40b2e4b70dc4e551265419fe7d486b42e9d5e9bff56213f743c22d39e8b0cd5
4
- data.tar.gz: a0cfb8558d4dd7540454450d2b18a6c194cd30aec236c781b08de666ad9fca56
3
+ metadata.gz: 1f9bbc00f219b1639088a2d92f32e874b1dd0576d306c885cf3b42da29785591
4
+ data.tar.gz: '083188ee196fd95ac79efa7ec3f30d6afca0976632087f36713836e1ffd5dfd7'
5
5
  SHA512:
6
- metadata.gz: aeb9c095db33a23cc8564acce575c1aca9ae4ba39c69a00043e0647289c6df4a764700af287d03ab4bee3d7a01a7c971b6bb697e26dcf56085cd17e6f07a4d5e
7
- data.tar.gz: 9d7f469b60da7b6df41ddacc1dfd0090779faa059e0fc9975f6de75859f491d2fcc391b1f6ef0866897ab37f7d0e80a11cc6a4d129d4700a5690a4f87bde1235
6
+ metadata.gz: 8afcaf2d802fea8fcfc45b600f52ba00b0c3348d4ef1d4af99d6c254e17883aa099b728ddcfde80a40372ae832dfd63d3d6f1f25f8356741fbb09b5ad340b4ea
7
+ data.tar.gz: 40b2d620c392247387afd0085b68b2d8ac6111d4b224feb5889f75c5ae30c276973f9e642443da15ab36a7c2352b9428fee6d9f1b57b321b21ef8f89596cf414
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Opal
4
4
  module Httpget
5
- VERSION = "0.1.3"
5
+ VERSION = "0.1.5"
6
6
  end
7
7
  end
data/lib/opal/httpget.rb CHANGED
@@ -9,7 +9,7 @@ if RUBY_ENGINE == "opal"
9
9
  else
10
10
  puts "Ruby engine is ruby"
11
11
  Opal.append_path File.expand_path("..", __FILE__).untaint
12
- Opal.append_path File.expand_path(".", __FILE__).untaint
12
+ Opal.append_path File.expand_path("../..", __FILE__).untaint
13
13
 
14
14
  require_relative "httpget/version"
15
15
  # require_relative '../jquery-3.6.0.min.js'
@@ -78,4 +78,15 @@ module Opal
78
78
  end
79
79
 
80
80
  end
81
+
82
+ # おまけ機能: テキストの変更
83
+ def change_text(id, text)
84
+ `document.querySelector(id).textContent=text;`
85
+ end
86
+
87
+ # おまけ機能: テキストの変更
88
+ def open_window(url)
89
+ `window.open( url );`
90
+ end
91
+
81
92
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-httpget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - showata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-25 00:00:00.000000000 Z
11
+ date: 2022-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal