curlyrest 0.1.31 → 0.1.36

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: 97f24686f219dcf4168a119e4ecc5e9f5ca8a84c2581356e57f176b26cd9b9be
4
- data.tar.gz: 0723e3bd357eda0410a4db57bd3b00b55a8f6f07491c741034430883a9b88749
3
+ metadata.gz: 7601caa929fc1ac84447afc6342d5f2fb33351dd6b3049a6baabb58b0c41c8de
4
+ data.tar.gz: 6d88e1b9e95a43bc2c77dc17f3f94d94c5cc65c1b642a9dea1ce22b9586d0e6f
5
5
  SHA512:
6
- metadata.gz: 28aaaefc34168409941d22ec7687677e4eff58bb0b98efd71a7b65eac5f6a6a438f28c495d2c5f8de123d5ed8112a56c901966e3b43d03c039a3185a48172cd6
7
- data.tar.gz: f39f9825e1dc3eb896a3fbfcfc4d1427eb284445bef13286ddf49537fa4f2bd4ca5dcf6c96157c92dc28c146fe7208dba9dcc21ac97b7d3c4636d1b639b8c0db
6
+ metadata.gz: b341019f61e6e708929115fab1c6220494c1d423d02ad72c2b215bda71f02116846bf8bf2635f472a2e0774d257da8c46f103dbf165633c100dddd1029d66398
7
+ data.tar.gz: e8c65fd41840301def39b3699a1cba01fea5cc48a2b9e14890feb1d4e3775aa08e50789dcd1e62f010ea73ed2fc1eb23a8ac9b08ca56eb9f1303728263b68239
@@ -0,0 +1,64 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$">
8
+ <sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
9
+ <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
10
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
11
+ </content>
12
+ <orderEntry type="jdk" jdkName="RVM: ruby-2.5.5 [curlyrest]" jdkType="RUBY_SDK" />
13
+ <orderEntry type="sourceFolder" forTests="false" />
14
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="byebug (v11.1.3, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="docile (v1.3.2, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="domain_name (v0.5.20190701, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="http-accept (v1.7.0, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="http-cookie (v1.0.3, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v3.3.1, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="mime-types-data (v3.2020.0512, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="netrc (v0.11.0, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rake (v12.3.3, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="rest-client (v2.1.0, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.9.0, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.9.2, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.9.2, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.9.1, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.9.3, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="simplecov (v0.18.5, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
32
+ <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.12.2, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="unf (v0.1.4, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
34
+ <orderEntry type="library" scope="PROVIDED" name="unf_ext (v0.0.7.7, RVM: ruby-2.5.5 [curlyrest]) [gem]" level="application" />
35
+ </component>
36
+ <component name="RakeTasksCache">
37
+ <option name="myRootTask">
38
+ <RakeTaskImpl id="rake">
39
+ <subtasks>
40
+ <RakeTaskImpl description="Build curlyrest-0.1.33.gem into the pkg directory" fullCommand="build" id="build" />
41
+ <RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
42
+ <RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
43
+ <RakeTaskImpl description="Build and install curlyrest-0.1.33.gem into system gems" fullCommand="install" id="install" />
44
+ <RakeTaskImpl id="install">
45
+ <subtasks>
46
+ <RakeTaskImpl description="Build and install curlyrest-0.1.33.gem into system gems without network access" fullCommand="install:local" id="local" />
47
+ </subtasks>
48
+ </RakeTaskImpl>
49
+ <RakeTaskImpl description="Create tag v0.1.33 and build and push curlyrest-0.1.33.gem to rubygems.org" fullCommand="release[remote]" id="release[remote]" />
50
+ <RakeTaskImpl description="Run RSpec code examples" fullCommand="spec" id="spec" />
51
+ <RakeTaskImpl description="" fullCommand="default" id="default" />
52
+ <RakeTaskImpl description="" fullCommand="release" id="release" />
53
+ <RakeTaskImpl id="release">
54
+ <subtasks>
55
+ <RakeTaskImpl description="" fullCommand="release:guard_clean" id="guard_clean" />
56
+ <RakeTaskImpl description="" fullCommand="release:rubygem_push" id="rubygem_push" />
57
+ <RakeTaskImpl description="" fullCommand="release:source_control_push" id="source_control_push" />
58
+ </subtasks>
59
+ </RakeTaskImpl>
60
+ </subtasks>
61
+ </RakeTaskImpl>
62
+ </option>
63
+ </component>
64
+ </module>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
5
+ </profile>
6
+ </component>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/curlyrest.iml" filepath="$PROJECT_DIR$/.idea/curlyrest.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,155 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="77e144f1-4e8a-4865-8e6e-27ede49da375" name="Default Changelist" comment="" />
5
+ <option name="SHOW_DIALOG" value="false" />
6
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
7
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
8
+ <option name="LAST_RESOLUTION" value="IGNORE" />
9
+ </component>
10
+ <component name="Git.Settings">
11
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
12
+ </component>
13
+ <component name="ProjectId" id="1lphS2sfpkjFBl2XirXbEyW5HVn" />
14
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
15
+ <component name="ProjectViewState">
16
+ <option name="hideEmptyMiddlePackages" value="true" />
17
+ <option name="showLibraryContents" value="true" />
18
+ </component>
19
+ <component name="PropertiesComponent">
20
+ <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
21
+ <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
22
+ <property name="WebServerToolWindowFactoryState" value="false" />
23
+ <property name="nodejs_package_manager_path" value="npm" />
24
+ <property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
25
+ </component>
26
+ <component name="RunManager" selected="RSpec.curlyrest_spec">
27
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
28
+ <module name="curlyrest" />
29
+ <predefined_log_file enabled="true" id="RUBY_RSPEC" />
30
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="" />
31
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
32
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
33
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
34
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
35
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
36
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
37
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" ENABLE_BRANCH_COVERAGE="true" ENABLE_FORKED_COVERAGE="true">
38
+ <COVERAGE_PATTERN ENABLED="true">
39
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
40
+ </COVERAGE_PATTERN>
41
+ </EXTENSION>
42
+ <EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
43
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
44
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
45
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
46
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
47
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
48
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
49
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
50
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
51
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
52
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
53
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
54
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
55
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
56
+ <method v="2" />
57
+ </configuration>
58
+ <configuration name="curlyrest_spec" type="RSpecRunConfigurationType" factoryName="RSpec" nameIsGenerated="true">
59
+ <module name="curlyrest" />
60
+ <predefined_log_file enabled="true" id="RUBY_RSPEC" />
61
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="" />
62
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
63
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
64
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
65
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
66
+ <envs>
67
+ <env name="JRUBY_OPTS" value="-X+O" />
68
+ </envs>
69
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
70
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
71
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" IGNORE_RCOVRT="true" ENABLE_BRANCH_COVERAGE="true" ENABLE_FORKED_COVERAGE="true">
72
+ <COVERAGE_PATTERN ENABLED="true">
73
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
74
+ </COVERAGE_PATTERN>
75
+ </EXTENSION>
76
+ <EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
77
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
78
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/curlyrest_spec.rb" />
79
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
80
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
81
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
82
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
83
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
84
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
85
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
86
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
87
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
88
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
89
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
90
+ <method v="2" />
91
+ </configuration>
92
+ <configuration name="All tests in spec: curlyrest" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
93
+ <module name="curlyrest" />
94
+ <predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
95
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-Ilib" />
96
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
97
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
98
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
99
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
100
+ <envs>
101
+ <env name="JRUBY_OPTS" value="-X+O" />
102
+ </envs>
103
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
104
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
105
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" IGNORE_RCOVRT="true" ENABLE_BRANCH_COVERAGE="true" ENABLE_FORKED_COVERAGE="true">
106
+ <COVERAGE_PATTERN ENABLED="true">
107
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
108
+ </COVERAGE_PATTERN>
109
+ </EXTENSION>
110
+ <EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
111
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="$MODULE_DIR$/spec" />
112
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
113
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/{*_test,test_*,*_spec}.rb" />
114
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
115
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
116
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
117
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
118
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
119
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
120
+ <method v="2" />
121
+ </configuration>
122
+ <list>
123
+ <item itemvalue="RSpec.curlyrest_spec" />
124
+ <item itemvalue="Test::Unit/Shoulda/Minitest.All tests in spec: curlyrest" />
125
+ </list>
126
+ <recent_temporary>
127
+ <list>
128
+ <item itemvalue="Test::Unit/Shoulda/Minitest.All tests in spec: curlyrest" />
129
+ </list>
130
+ </recent_temporary>
131
+ </component>
132
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
133
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" RAKE_SPRING_PRE_LOADER_OPTION="true" RAILS_SPRING_PRE_LOADER_OPTION="true" />
134
+ <component name="TaskManager">
135
+ <task active="true" id="Default" summary="Default task">
136
+ <changelist id="77e144f1-4e8a-4865-8e6e-27ede49da375" name="Default Changelist" comment="" />
137
+ <created>1608299935353</created>
138
+ <option name="number" value="Default" />
139
+ <option name="presentableId" value="Default" />
140
+ <updated>1608299935353</updated>
141
+ <workItem from="1608299938548" duration="1819000" />
142
+ </task>
143
+ <servers />
144
+ </component>
145
+ <component name="TypeScriptGeneratedFilesManager">
146
+ <option name="version" value="3" />
147
+ </component>
148
+ <component name="com.intellij.coverage.CoverageDataManagerImpl">
149
+ <SUITE FILE_PATH="coverage/curlyrest@curlyrest_spec.rcov" NAME="curlyrest_spec Coverage Results" MODIFIED="1608301738646" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="curlyrest" />
150
+ <SUITE FILE_PATH="coverage/curlyrest@All_tests_in_curlyrest__curlyrest.rcov" NAME="All tests in curlyrest: curlyrest Coverage Results" MODIFIED="1608300279975" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="curlyrest" />
151
+ <SUITE FILE_PATH="coverage/curlyrest@All_tests_in_spec__curlyrest.rcov" NAME="All tests in spec: curlyrest Coverage Results" MODIFIED="1608301715193" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="curlyrest" />
152
+ <SUITE FILE_PATH="coverage/curlyrest@spec_helper.rcov" NAME="spec_helper Coverage Results" MODIFIED="1608300214429" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/spec" MODULE_NAME="curlyrest" />
153
+ <SUITE FILE_PATH="coverage/curlyrest@All_tests_in_spec__curlyrest__1_.rcov" NAME="All tests in spec: curlyrest (1) Coverage Results" MODIFIED="1608301065714" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="curlyrest" />
154
+ </component>
155
+ </project>
data/.rubocop.yml CHANGED
@@ -1,11 +1,17 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ SuggestExtensions: false
4
+
1
5
  Style/FrozenStringLiteralComment:
2
6
  Enabled: false
3
7
 
4
8
  Metrics/BlockLength:
9
+ Max: 2000
5
10
  Exclude:
11
+ - 'spec/*.rb'
12
+ - 'spec/**/*.rb'
6
13
  - 'Rakefile'
7
14
  - '**/*.rake'
8
- - 'spec/**/*.rb'
9
15
  - '*.gemspec'
10
16
 
11
17
  Metrics/MethodLength:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.4.1
1
+ ruby-2.5.5
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
  gem 'simplecov', require: false, group: :test
3
5
 
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rspec/core/rake_task'
3
5
 
data/curlyrest.gemspec CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  lib = File.expand_path('lib', __dir__)
2
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
5
  require 'curlyrest/version'
@@ -7,7 +9,7 @@ Gem::Specification.new do |spec|
7
9
  spec.version = Curlyrest::VERSION
8
10
  spec.authors = ['Keith Williams']
9
11
  spec.email = ['keithrw@comcast.net']
10
-
12
+ spec.required_ruby_version = ['>= 2.5.5', '< 3.0']
11
13
  spec.summary =
12
14
  'gem extending rest-client, allowing use/debug of curl for request'
13
15
  spec.description =
@@ -23,8 +25,8 @@ Gem::Specification.new do |spec|
23
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
26
  spec.require_paths = ['lib']
25
27
 
26
- spec.add_development_dependency 'byebug'
27
- spec.add_development_dependency 'rake', '~> 10.0'
28
+ spec.add_runtime_dependency 'byebug', '~> 11.1'
29
+ spec.add_development_dependency 'rake', '~> 12.3.3'
28
30
  spec.add_development_dependency 'rest-client', '~> 2.0'
29
31
  spec.add_development_dependency 'rspec', '~> 3.0'
30
32
  end
data/lib/curlyrest.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'curlyrest/version'
2
4
  require 'rest-client'
3
5
  require 'byebug'
@@ -8,45 +10,42 @@ module Curlyrest
8
10
  class CurlResponse
9
11
  include Net::HTTPHeader
10
12
  attr_reader :code, :http_version, :message, :headers
11
- attr_accessor :body, :inflate
13
+ attr_accessor :body
14
+
12
15
  def initialize(http_version, status, message = '')
13
16
  @message = message
14
17
  @http_version = http_version
15
18
  @code = status
16
19
  @body = ''
17
- @inflate = Zlib::Inflate.new(32 + Zlib::MAX_WBITS)
18
20
  initialize_http_header nil
19
21
  end
20
-
21
- def unzip_body(gzip)
22
- @body = @inflate.inflate(gzip)
23
- end
24
22
  end
25
23
 
26
24
  # class for parsing curl responses
27
25
  class CurlResponseParser
28
26
  attr_accessor :response
27
+
29
28
  def initialize(response)
30
29
  @state = :read_status
31
30
  @response = nil
32
- @body = ''
31
+ @body_lines = []
32
+ @body = nil
33
33
  parse(response)
34
34
  end
35
35
 
36
+ def body
37
+ @body || @body_lines.join
38
+ end
39
+
36
40
  def parse(response)
37
41
  response.lines.each do |line|
38
42
  parse_line(line)
39
43
  end
40
- ce = @response.to_hash.dig('content-encoding')
41
- if ce&.include?('gzip')
42
- @response.unzip_body(@body)
43
- else
44
- @response.body = @body
45
- end
44
+ @response.body = body
46
45
  end
47
46
 
48
47
  def parse_status(line)
49
- re = %r{^HTTP\/(\d+|\d+\.\d+)\s(\d+)\s*(.*)$}
48
+ re = %r{^HTTP/(\d+|\d+\.\d+)\s(\d+)\s*(.*)$}
50
49
  return unless re.match(line.chop)
51
50
 
52
51
  r = Regexp.last_match(2)
@@ -70,7 +69,7 @@ module Curlyrest
70
69
  def parse_line(line)
71
70
  case @state
72
71
  when :body
73
- @body << line
72
+ @body_lines << line
74
73
  when :read_status
75
74
  parse_status(line)
76
75
  when :headers
@@ -84,6 +83,7 @@ module Curlyrest
84
83
  # class for transmitting curl requests
85
84
  class CurlTransmitter
86
85
  attr_accessor :options, :headers, :line, :timeout
86
+
87
87
  def initialize(uri, method, headers, payload)
88
88
  @payload = payload
89
89
  @method = method
@@ -105,14 +105,13 @@ module Curlyrest
105
105
  headers, options = opts_from_headers(headers)
106
106
  headers.delete('No-Restclient-Headers') ||
107
107
  headers.delete(:no_restclient_headers)
108
- headers.delete('Accept-Encoding') ||
109
- headers.delete('accept_encoding')
110
108
  [headers, options]
111
109
  end
112
110
 
113
111
  def curl_data(payload)
114
112
  return nil unless payload
115
113
  return "-d '#{payload}'" unless payload.include?('\'')
114
+
116
115
  File.write('/tmp/curl_quoted_binary', payload)
117
116
  '--data-binary @/tmp/curl_quoted_binary'
118
117
  end
@@ -125,13 +124,13 @@ module Curlyrest
125
124
  timeout = options[:timeout]
126
125
  timeout_str = ''
127
126
  timeout_str << " --max-time #{timeout}" unless timeout.nil?
128
- "curl -isS -X #{@method.upcase}#{timeout_str}"
127
+ "curl -isSL -X #{@method.upcase}#{timeout_str} 2>&1"
129
128
  end
130
129
 
131
130
  def curl_headers(headers)
132
- ret_headers = ' '
131
+ ret_headers = [' ']
133
132
  headers.each { |k, v| ret_headers << "-H '#{k}: #{v}' " }
134
- ret_headers
133
+ ret_headers.join
135
134
  end
136
135
 
137
136
  def curl_command
@@ -151,6 +150,7 @@ module Curlyrest
151
150
  def curl_transmit(uri, method, headers, payload)
152
151
  ct = CurlTransmitter.new(uri, method, headers, payload)
153
152
  r = ct.exec_curl
153
+
154
154
  CurlResponseParser.new(r).response
155
155
  end
156
156
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Curlyrest
2
- VERSION = '0.1.31'.freeze
4
+ VERSION = '0.1.36'
3
5
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: curlyrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.31
4
+ version: 0.1.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Williams
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-02 00:00:00.000000000 Z
11
+ date: 2021-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
19
+ version: '11.1'
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '11.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: 12.3.3
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: '10.0'
40
+ version: 12.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rest-client
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -74,6 +74,11 @@ extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
+ - ".idea/curlyrest.iml"
78
+ - ".idea/inspectionProfiles/Project_Default.xml"
79
+ - ".idea/modules.xml"
80
+ - ".idea/vcs.xml"
81
+ - ".idea/workspace.xml"
77
82
  - ".rspec"
78
83
  - ".rubocop.yml"
79
84
  - ".ruby-gemset"
@@ -90,7 +95,7 @@ homepage: https://github.com/keithrw54/curlyrest.git
90
95
  licenses:
91
96
  - MIT
92
97
  metadata: {}
93
- post_install_message:
98
+ post_install_message:
94
99
  rdoc_options: []
95
100
  require_paths:
96
101
  - lib
@@ -98,16 +103,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
103
  requirements:
99
104
  - - ">="
100
105
  - !ruby/object:Gem::Version
101
- version: '0'
106
+ version: 2.5.5
107
+ - - "<"
108
+ - !ruby/object:Gem::Version
109
+ version: '3.0'
102
110
  required_rubygems_version: !ruby/object:Gem::Requirement
103
111
  requirements:
104
112
  - - ">="
105
113
  - !ruby/object:Gem::Version
106
114
  version: '0'
107
115
  requirements: []
108
- rubyforge_project:
109
- rubygems_version: 2.7.9
110
- signing_key:
116
+ rubygems_version: 3.0.8
117
+ signing_key:
111
118
  specification_version: 4
112
119
  summary: gem extending rest-client, allowing use/debug of curl for request
113
120
  test_files: []