Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CUSTOMER_ID=CUSTOMER_ID
CUSTOMER_ACCOUNT_ID=CUSTOMER_ACCOUNT_ID
DEVELOPER_TOKEN=DEVELOPER_TOKEN
OAUTH2_CLIENT_ID=OAUTH2_CLIENT_ID
OAUTH2_CLIENT_SECRET=OAUTH2_CLIENT_SECRET
ACCESS_TOKEN=ACCESS_TOKEN
REFRESH_TOKEN=REFRESH_TOKEN
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "daily"
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build
on: [pull_request]

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Read ruby version
id: ruby-version
run: |
content=`cat ./.ruby-version`
echo "::set-output name=content::$content"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ steps.ruby-version.outputs.content }}
bundler-cache: true
cache-version: 1
- name: Run tests
run: bundle exec rspec
9 changes: 9 additions & 0 deletions .github/workflows/secrets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Find Secrets
on: [pull_request]

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: max/secret-scan@master
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ bing_ads_api.yml
/*.0.1.gem
/*.0.2.gem
/*.0.*.gem
/test.rb
/test.rb
.env*.local
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require:
- rubocop-rake
- rubocop-rspec
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.6.8
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ruby:2.6.9-slim-bullseye
RUN DEBIAN_FRONTEND=noninteractive apt-get -y -q update && apt-get -y -q install build-essential

ENV APP_HOME /usr/share/dgvz
WORKDIR $APP_HOME

# load the app
COPY . $APP_HOME

RUN bundle install
9 changes: 9 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@ source "http://rubygems.org"
# Declare your gem's dependencies in semrush.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.

group :development do
gem 'guard'
gem 'guard-rspec', require: false
gem 'rubocop'
gem 'rubocop-rspec', require: false
gem 'rubocop-rake', require: false
end

gemspec
221 changes: 165 additions & 56 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,90 +1,199 @@
PATH
remote: .
specs:
bing_ads_api_v9 (0.0.8)
bing_ads_api (0.0.8)
activesupport (>= 3.1.0)
addressable (~> 2.3.8)
google-ads-common (~> 0.9.3)
savon (~> 1.2.0)
addressable
google-ads-common
savon

GEM
remote: http://rubygems.org/
specs:
activesupport (4.2.6)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
activesupport (6.1.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.3.8)
akami (1.2.2)
akami (1.3.1)
gyoku (>= 0.4.0)
nokogiri
builder (3.2.2)
diff-lcs (1.2.5)
extlib (0.9.16)
faraday (0.9.2)
ast (2.4.2)
builder (3.2.4)
coderay (1.1.3)
concurrent-ruby (1.1.10)
crack (0.4.5)
rexml
diff-lcs (1.5.0)
dotenv (2.7.6)
faraday (1.10.0)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.3)
multipart-post (>= 1.2, < 3)
google-ads-common (0.9.9)
httpi (~> 1.1.0)
savon (~> 1.2.0)
signet (~> 0.6.0)
gyoku (0.4.6)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
ffi (1.15.5)
formatador (1.1.0)
google-ads-common (1.0.3)
google-ads-savon (~> 1.0, >= 1.0.2)
httpclient (~> 2.7)
httpi (~> 2.3)
signet (~> 0.7)
google-ads-savon (1.0.4)
akami (~> 1.2)
builder (~> 3.0)
gyoku (~> 1.2)
httpi (~> 2.3)
nokogiri (~> 1.6)
nori (~> 2.6)
wasabi (~> 3.4)
guard (2.18.0)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
lumberjack (>= 1.0.12, < 2.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.13.0)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-compat (1.2.1)
guard-rspec (4.7.3)
guard (~> 2.1)
guard-compat (~> 1.1)
rspec (>= 2.99.0, < 4.0)
gyoku (1.4.0)
builder (>= 2.1.2)
httpi (1.1.1)
rexml (~> 3.0)
hashdiff (1.0.1)
httpclient (2.8.3)
httpi (2.5.0)
rack
i18n (0.7.0)
json (1.8.3)
jwt (1.5.4)
mini_portile2 (2.4.0)
minitest (5.9.0)
multi_json (1.12.1)
multipart-post (2.0.0)
nokogiri (1.10.8)
mini_portile2 (~> 2.4.0)
nokogiri (1.10.8-x86-mingw32)
mini_portile2 (~> 2.4.0)
nori (1.1.5)
rack (1.6.12)
rake (10.4.2)
socksify
i18n (1.10.0)
concurrent-ruby (~> 1.0)
jwt (2.3.0)
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
lumberjack (1.2.8)
method_source (1.0.0)
mini_portile2 (2.8.0)
minitest (5.15.0)
multi_json (1.15.0)
multipart-post (2.1.1)
nenv (0.3.0)
nokogiri (1.13.6)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nori (2.6.0)
notiffany (0.1.3)
nenv (~> 0.1)
shellany (~> 0.0)
parallel (1.22.1)
parser (3.1.2.0)
ast (~> 2.4.1)
pry (0.14.1)
coderay (~> 1.1)
method_source (~> 1.0)
racc (1.6.0)
rack (2.2.3)
rainbow (3.1.1)
rake (10.5.0)
rb-fsevent (0.11.1)
rb-inotify (0.10.1)
ffi (~> 1.0)
regexp_parser (2.4.0)
rexml (3.2.5)
rspec (2.99.0)
rspec-core (~> 2.99.0)
rspec-expectations (~> 2.99.0)
rspec-mocks (~> 2.99.0)
rspec-core (2.99.2)
rspec-expectations (2.99.2)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.99.3)
savon (1.2.0)
akami (~> 1.2.0)
rspec-mocks (2.99.4)
rubocop (1.29.0)
parallel (~> 1.10)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.17.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.17.0)
parser (>= 3.1.1.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.10.0)
rubocop (~> 1.19)
ruby-progressbar (1.11.0)
ruby2_keywords (0.0.5)
savon (2.12.1)
akami (~> 1.2)
builder (>= 2.1.2)
gyoku (~> 0.4.5)
httpi (~> 1.1.0)
nokogiri (>= 1.4.0)
nori (~> 1.1.0)
wasabi (~> 2.5.0)
signet (0.6.1)
gyoku (~> 1.2)
httpi (~> 2.3)
nokogiri (>= 1.8.1)
nori (~> 2.4)
wasabi (~> 3.4)
shellany (0.0.1)
signet (0.15.0)
addressable (~> 2.3)
extlib (~> 0.9)
faraday (~> 0.9)
jwt (~> 1.5)
faraday (>= 0.17.3, < 2.0)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
thread_safe (0.3.5)
tzinfo (1.2.2)
thread_safe (~> 0.1)
wasabi (2.5.1)
httpi (~> 1.0)
nokogiri (>= 1.4.0)
socksify (1.7.1)
thor (1.2.1)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
unicode-display_width (2.1.0)
vcr (6.1.0)
wasabi (3.7.0)
addressable
httpi (~> 2.0)
nokogiri (>= 1.4.2)
webmock (3.13.0)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
zeitwerk (2.5.4)

PLATFORMS
ruby
x86-mingw32

DEPENDENCIES
bing_ads_api_v9!
bing_ads_api!
dotenv
guard
guard-rspec
rack (>= 1.6.12)
rake
rspec (~> 2.8)
rubocop
rubocop-rake
rubocop-rspec
vcr
webmock

BUNDLED WITH
1.16.6
1.17.2
Loading